Fix Reversed Comments Pagination

Fixes WordPress reversed comments pagination issue where it doesn't fill the default page with comments.

Author:WinkPress (profile at wordpress.org)
WordPress version required:3.1
WordPress version tested:3.1.4
Plugin version:1.0
Added to WordPress repository:12-04-2011
Last updated:05-05-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:http://winkpress.com/articles/fix-reversed-co...
Total downloads:2 233
Active installs:10+
plugin download
Click to start download

What Problem Does This Plugin Fix?

If you have 21 comments on a certain post, and your WordPress discussion settings are:

  1. Comments are paginated
  2. 20 comments per page
  3. Last page displayed by default
  4. Newer comments displayed at the top of each page

Then the default page will show only one comment, #21. The second page will show comments 20 to 1.

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.

Installation

After you upload and activate, you must make a minor modification to your theme.

In [wp_list_comments](https://codex.wordpress.org/Function_Reference/wp_list_comments) of your theme, pass Walker_Comment_Wink class as the “walker” — like this:

if (class_exists('Walker_Comment_Wink'))
  $walker = new Walker_Comment_Wink();
else
  $walker = '';

wp_list_comments(array('walker' => $walker));

Bug Reports & Issues

I’m 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’s the case, tell me in the comments of the plugin’s page.

Developed by WinkPress.


ChangeLog