relatedPosts loop needs an if