I tried retrieving the comment count (I am using Facebook Comments for WordPress) for each post so I included
<?php comments_number('no responses','one response','% responses'); ?>
into my code. If I include it into the single.php it works fine and shows the correct number of comments posted. However, if I add the code snippet to the index.php (within the loop) it only says ‘Leave comment’ and does not show the number of comments already posted.
Any idea why that is?
Many thanks to all!
- The topic ‘Comment count – only works on single.php but not on index.php’ is closed to new replies.