I'm simply typing wp_list_comments() in page.php but nothing is shown. But if I put the comments_template() tag there, then the comment form, comments and pings are shown. Why is that, why can't I use wp_list_comments() in page.php? What could I have done wrong?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
You need to include comments functionality via While the Codex doesn't really get into details, you can see, by looking at source, what's going on:
|
|||||||||
|
|
Try enclosing wp_list_comments() like this:
comments_template() simply loads comments.php which makes use of wp_list_comments in an enclosing CSS class. HTH |
|||
|
|
