Support » Fixing WordPress » Paging comments via wp_list_comments()

  • 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:

    wp_list_comments(array('reverse_top_leve'=>true,'reverse_children'=>true));

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paging comments via wp_list_comments()’ is closed to new replies.