admin管理员组文章数量:1410712
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?
本文标签: Comment Pagination Behavior wplistcomments()comment ordering and pagination
版权声明:本文标题:Comment Pagination Behavior wp_list_comments() - comment ordering and pagination 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744929765a2632823.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论