WordPress.org

Ready to get started?Download WordPress

Forums

Using wp_list_comments results in nothing (2 posts)

  1. Rebecca Putinski
    Member
    Posted 5 years ago #

    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()) :
    wp_list_comments();
    endif;

    In all it's basicness.

    Thanks.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic