Opened 6 years ago
Closed 6 years ago
#46027 closed defect (bug) (duplicate)
Improve comment pagination
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
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.
Thank you for the bug report, @lozula! There are some significant backward compatibility issues to deal with before we can fix this, there are more details over on #29462.