I have two instances where the comments_number function is only displaying the first parameter. I don’t think it is finding the comments even though I can look in phpMyAdmin and see the comments.
In index.php <?php comments_number('0', '1', '%');?>
I can’t find the problem googleing for it. Any idea why it might not be getting the comments number from the database or defaulting to the first parameter?
Sorry I hate that I wasted time and space here. I had to approve the comments before they show up in the comment number. I’m following a theme making tutorial for beginners and they didn’t have to approve them in the video so I couldn’t figure out why until I logged in and started looking around the dashboard.
Viewing 1 replies (of 1 total)
The topic ‘comments_number not working’ is closed to new replies.
(@iansane)
14 years, 4 months ago
Hi,
I have two instances where the comments_number function is only displaying the first parameter. I don’t think it is finding the comments even though I can look in phpMyAdmin and see the comments.
In index.php
<?php comments_number('0', '1', '%');?>displays ‘0’ and in comments.php
<?php comments_number('No Responses', 'One Response', '% Responses');?>displays ‘No Responses’.
I can’t find the problem googleing for it. Any idea why it might not be getting the comments number from the database or defaulting to the first parameter?
Thank you