Comment count – only works on single.php but not on index.php
-
Hi,
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!
do77
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Comment count – only works on single.php but not on index.php’ is closed to new replies.