Grow your CSS skills. Land your dream job.

How to fix reversed comments pagination

  • # June 8, 2012 at 6:25 pm

    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.

    # June 8, 2012 at 8:22 pm

    I think you can do it with this

    < ?php wp_list_comments('reverse_top_level=DESC&callback=my_custom_comments'); ?>
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".