Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wp_list_comments() not working

Tags:

wordpress

I've created a custom theme from scratch, nothing fancy, simple theme. I'm currently using Wordpress 3.2.1. I put wp_list_comments() in the comments.php to list the comments, and it doesn't work at all! No comments displayed. Tried putting it in single.php, tried also deactivating all the plugins - still nothing. I used the default function, just wp_list_comments(); with no arguments. Could anybody suggest why it might be not working?

like image 706
ninusik Avatar asked Aug 13 '11 17:08

ninusik


People also ask

How do I show comments on WordPress?

Simply go to the Settings » Discussion page. From here, you'll find the option 'Comments should be displayed with the older comments at the top of each page' under the 'Other comment settings' section.


1 Answers

Did you try <?php comments_template(); ?> in single.php? You seem to imply in your comment above that you were doing something like <?php include('comments.php')?> This won't work, because the comments haven't been queried from the database--comments_template() does that, then includes comments.php in your theme root.

Does that help?

like image 56
Chris Carson Avatar answered Nov 07 '22 00:11

Chris Carson