{"id":71110,"date":"2011-04-12T08:00:00","date_gmt":"2011-04-12T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/fix-reversed-comments-pagination\/"},"modified":"2011-05-05T21:45:00","modified_gmt":"2011-05-05T21:45:00","slug":"fix-reversed-comments-pagination","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/fix-reversed-comments-pagination\/","title":{"rendered":"Fix Reversed Comments Pagination"},"content":{"rendered":"<h3>What Problem Does This Plugin Fix?<\/h3>\n<p>If you have 21 comments on a certain post, and your WordPress discussion settings are:<\/p>\n<ol>\n<li>Comments are paginated<\/li>\n<li>20 comments per page<\/li>\n<li>Last page displayed by default<\/li>\n<li>Newer comments displayed at the top of each page<\/li>\n<\/ol>\n<p>Then the default page will show only one comment, #21. The second page will show comments 20 to 1.<\/p>\n<p>What WordPress should do instead is display comments 21 to 2 on the default page, and 1 on the second page. With the help of this plugin, WordPress will do that.<\/p>\n<h3>Installation<\/h3>\n<p>After you upload and activate, you must make a minor modification to your theme.<\/p>\n<p>In <code>[wp_list_comments](https:\/\/codex.wordpress.org\/Function_Reference\/wp_list_comments)<\/code> of your theme, pass Walker_Comment_Wink class as the \u201cwalker\u201d \u2014 like this:<\/p>\n<pre><code>if (class_exists('Walker_Comment_Wink'))\n  $walker = new Walker_Comment_Wink();\nelse\n  $walker = '';\n\nwp_list_comments(array('walker' => $walker));\n<\/code><\/pre>\n<h3>Bug Reports & Issues<\/h3>\n<p>I\u2019m using this plugin on my site and have tested it else where. It works great. But your setup might be different and you may notice things I missed. If that\u2019s the case, tell me in the <a href=\"http:\/\/winkpress.com\/articles\/fix-reversed-comments-pagination\/\" rel=\"nofollow ugc\">comments of the plugin\u2019s page<\/a>.<\/p>\n<p>Developed by <a href=\"http:\/\/winkpress.com\/\" rel=\"nofollow ugc\">WinkPress<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixes WordPress reversed comments pagination issue where it doesn't fill the default page with comments.<\/p>\n","protected":false},"author":65,"featured_media":278245,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Fix Reversed Comments Pagination - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Fixes WordPress reversed comments pagination issue where it doesn't fill the default page with comments."},"footnotes":""},"categories":[1],"tags":[124,4103],"class_list":["post-71110","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-comments","tag-pagination"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/71110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=71110"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/71110\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/278245"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=71110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=71110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=71110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}