Comment Pagination Behavior wp_list_comments() - comment ordering and pagination

I am using wp_list_comments with a callback function to display a list of all comments, and it's working well.I am

I am using wp_list_comments with a callback function to display a list of all comments, and it's working well.

I am then using paginate_comments_links to create pagination links, which is also working well.

My issue is with comment ordering and pagination.

In the WordPress discussion settings, I have...

Break comments into pages with 10 top level comments per page and the last page displayed by default Comments should be displayed with the newer at the top of each page.

And this almost works exactly the way I want.

If I have, say, 50 comments, then the page will be broken down into 5 pages. The "last" page will have defaulted, and the comment order will be from most recent to oldest. Perfect!

The problem is that if someone now posts comment #51, then this comment goes to its own page. And since the last page is defaulted, this means that when someone goes to the main page, they will ONLY see this one comment, and have to go back a page to see the previous 10, instead of the last page auto filling to 10.

Anyone have any ideas on what to do?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744929765a4601661.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信