Support » Plugins » [Plugin: WP-Paginate] Separation of Comments From Ping/Trackbacks

Viewing 1 replies (of 1 total)
  • b-rad – Unfortunately, WP-Paginate is just responsible for creating the pagination links, not displaying the comments or posts.

    On my current site, I did something similar with:

    // get comment and trackback counts
    $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $post->ID));
    $emm_comment_count = count($comments_by_type['comment']);
    $emm_trackback_count = count($comments_by_type['pings']);
    
    ...
    
    <ol>
    <?php wp_list_comments('type=comment&style=ol'); ?>
    </ol>
    
    ...
    
    <ol>
    <?php wp_list_comments('type=pings&style=ol'); ?>
    </ol>

    There is more code in between, like validation of counts and headers, etc., but the basic idea applies.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-Paginate] Separation of Comments From Ping/Trackbacks’ is closed to new replies.