Paging comments via wp_list_comments() (3 posts)

  1. marky
    Posted 6 years ago #

    I have a special guestbook page on my blog with its own template for comments.

    The idea is that a guestbook should display the most recent comments first, while standard blog posts should show the comments in the order they were posted.

    I'm using the following to output the comments on the guestbook:


    The guestbook has hundreds of comments, and so the output is paged (as it should be). However, there is a problem. Although the comment order is successfully reversed on each page, the pages themselves are not. (That is, visiting the Guestbook will show the first page of comments, not the last page of comments as I would expect.)

    Is there a parameter to wp_list_comments that can change the page order? Using the option on the Discussion Settings screen is non optional, since I don't want all comments on my blog affected---just the guestbook.

    Any ideas what I can do?

  2. marky
    Posted 6 years ago #

    No solutions? Is this an oversight?

  3. marky
    Posted 6 years ago #

    OK, since no one can help I assume it's a fault. I've submitted a trac ticket.

Topic Closed

This topic has been closed to new replies.

About this Topic