Support » Themes and Templates » Using wp_list_comments results in nothing

  • Hello,

    I’m developing a theme, and I’ve only recently been using the latest version of WP (so I’m used to other ways of getting comments).

    To my understanding, wp_list_comments() returns a list of echo’ed comments. When I use this function on my default post (Hello world etc), nothing shows up. I can obviously get my comments some other way, but this is odd. Am I missing something?

    I basically have:

    if(have_comments()) :

    In all it’s basicness.


Viewing 1 replies (of 1 total)
  • esmi


    Forum Moderator

    In single.php, use <?php comments_template(); ?>. No if statement needed.

Viewing 1 replies (of 1 total)
  • The topic ‘Using wp_list_comments results in nothing’ is closed to new replies.