treehouse : what would you like to learn today?
Web Design Web Development iOS Development

How to fix reversed comments pagination

  • Hi guys,

    In Wordpress I have set my discussion settings to:

    Break comments into pages with '5' top level comments per page and the 'last' page displayed by default. Comment should be displayed with the 'newer' comments on top of each page

    The problem:
    If there were 6 comments on post the first page of comments it would only display one comment, the second page will display the other 5 comments.

    This is crap! It makes it seem like there are almost no comments at first glance when there is plenty.

    Any ideas how to modify this without a plugin and playing nicely with
    <?php wp_list_comments("callback=my_custom_comments");?>
    whereas my_custom_comments is a customization of the comments in functions.php ?

    Any help is much appreciated! This kind of issue should definitely be fixed in future versions of the WordPress core.
  • I think you can do it with this
    <?php wp_list_comments('reverse_top_level=DESC&callback=my_custom_comments'); ?>