• i’m trying to display the list of comments after the post i missing something?

    if ( have_posts() ) {
    		while ( have_posts() ) {
    			the_post();
    
    			ob_start();
      			echo '<h2>'.get_the_title().'</h2>';
    			echo '<small>'.get_the_time('F jS, Y');
    			echo '&nbsp;&nbsp;<span class="author">'.get_the_author().'</span></small>';
    			the_content();
    			echo'<ol class="commentlist">';
    			wp_list_comments();
    			echo '</ol>';
      			$output .= ob_get_contents();
      			ob_end_clean();
    		}
    	}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The comment list normally goes in the comments.php file that is called from single.php. See the default theme for an example.

    Thread Starter neonWired

    (@neonwired)

    I included the comments.php from the default theme but it still doesn’t display any comments only the “Leave a ReplyYou must be logged in to post a comment.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can’t get wp_list_comments() to list anything’ is closed to new replies.