/** 
 * Template tag to get related posts. 
 *
 * @since 1.1
 * @author Paul Hughes
 * @param string $tags comma-separated list of tags.
 * @param int $count number of related posts to return.
 * @param string $blog the blog from which to fetch the related posts.
 * @param bool $only_display_related whether to display only related posts or others as well.
 * @param string $post_type the type of post to return.
 * @return array the related posts.
 */
function tribe_get_related_posts($tag = false, $category = false, $count = 5, $blog = false, $only_display_related = false, $post_type = 'post')
{
    return apply_filters('tribe-get-related-posts', TribeRelatedPosts::getPosts($tag, $category, $count, $blog, $only_display_related, $post_type));
}