[wp-trac] [WordPress Trac] #46027: Improve comment pagination

WordPress Trac noreply at wordpress.org
Fri Jan 18 01:43:10 UTC 2019


#46027: Improve comment pagination
--------------------------+-----------------------------
 Reporter:  lozula        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In WordPress 5.0.3 (and many versions before), the comment pagination does
 not work as expected.

 What I want is to be able to display the most recently posted comments on
 the first page of pagination, up to the amount I choose to paginate to,
 and I want that first page of comments to contain the same number of
 comments that I choose to paginate to.

 Subsequent pages of comments would then display the rest of the comments,
 through the last page, which will display however many remaining comments
 there are.

 Here is an example. I have a blog post with 51 comments.

 On the discussion settings page, I:

 Check the box for break comments into page - yes
 Set 50 top level comments per page
 Set the "last" page to be displayed by default
 Set comments to be displayed with "newer" comments at the top of each
 page.

 What I would hope to see on this page is my blog post, followed by the 50
 most recent comments, under which there would be a link to the older
 comments, which would take me to a page with 1 more comment on.

 Instead, I see 1 latest comment, with a link which takes me to the 50
 older comments.

 From a user point of view this makes no sense. At the top of the page,
 they see a marker that says "51 comments". They scroll down, and there is
 one comment.

 I believe this has been the case for a while. Up until WP 4.4 there was a
 plugin that fixed this (https://wordpress.org/plugins/fix-reversed-
 comments-pagination/), but it stopped worked due to a change in comment
 logic.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46027>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list