improved code so_related_posts_output content filter