Support » Fixing WordPress » comments list

  • I’m using this code to put the comments in my homepage:

    <?php comment_form(); ?> 
    
    <ol class="commentlist">
    	<?php
    		//Gather comments for a specific page/post
    		$comments = get_comments(array(
    			'post_id' => XXX,
    			'status' => 'approve' //Change this to the type of comments to be displayed
    		));
    
    		//Display the list of comments
    		wp_list_comments(array(
    			'per_page' => 6, //Allow comment pagination
    			'reverse_top_level' => false //Show the latest comments at the top of the list
    		), $comments);
    	?>
    </ol>

    now that gives me that which it’s perfect:
    http://letshoe.com/comm1.jpg

    but after I’m writing a comment I’m getting this:
    http://letshoe.com/comm2.jpg

    So i guess it relating it to a specific post from NOV16
    how can i make that all the time I’ll see all the posts?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘comments list’ is closed to new replies.