Installation (for WordPress 2.3 up to 2.7)

If you’re upgrading from a previous version, skip these installation steps and read the upgrade steps. Note: WordPress’ automatic upgrade feature will erase the plugin’s config file. If you’re going to use it, make sure you backup your paged-comments-config.php file first.

Download and extract plugin files to a folder locally.

Read through and edit paged-comments-config-sample.php to configure, then save the file as paged-comments-config.php.

Upload the whole paged-comments directory to /wp-content/plugins/. The plugin files should now be in /wp-content/plugins/paged-comments/.

Enable the plugin through the WordPress admin interface. That’s it!

Optional Steps

WP 2.7 users: If use_wp_config is set to true (default), you can make changes to the plugin config using the WP admin interface. Go to Settings > Discussion and look under ‘Other comment settings’.

To customise the template to work better with your theme: Open the plugin’s themes folder and find the subfolder corresponding to the WordPress theme you’d like paged comments enabled on (or if your theme isn’t listed, choose the ‘default’ folder). Upload comments-paged.php to the appropriate WordPress theme folder (found in [wordpress]/wp-content/themes/).

For example, if you’re using the default WordPress theme, copy [paged-comments-plugin]/themes/default/comments-paged.php to [wordpress]/wp-content/themes/default/. (The plugin always tries to load comments-paged.php from your active theme folder first.)

Make any modifications to comments-paged.php. The file is based on the comments.php file, so if your theme is very different it might be easier to copy in the necessary elements from paged-comments.php. View the diff report to see what you need to change.

Examples of Use

The comments on this page are handled by the plugin, but it’s also used by the following sites:

Blaenk: Thanks a lot for that! I’m glad you’ve found a workaround. To be honest, I haven’t even looked at WP 2.7 yet, so I have no idea what conflicts. Seeing as there is still interest though, I’m going to release another version for 2.7. I’d also like to allow users to keep the existing permalinks (without having to rename the path segment to something else), but I won’t know if that’s possible until I’ve had a chance to look at the code.

Keyvan: The only way I see that being possible without also modifying the WordPress core is by adding a much higher priority level to paged_comments_fancy_url, maybe something like -10 haha but even then I wouldn’t be sure. I’ll try it out right now. Nope it didn’t seem to work. Is the init hook the most earliest hook when loading a page?

It seems to me like modifying the core is the only other way to go. The comment-page redirection/matching occurs in the following core files of a vanilla 2.7 install:

So I guess modifying the permalink in the plugin is the most convenient way to go. Either way for me it’s not that big of a deal modifying the permalink so I’m fine with it. Thanks again for the plugin!

Following Blaenk idea, I found a solution without modifying the url structure. Just changing in 4 files: canonical.php, comment-template.php, link-template.php y rewrite.php (located in wp-includes) the following: comment-page by something similar (eg. commentS-page).

WP 2.7 update
Thanks for the help guys. I’ve just tried it myself and I think the fix for WP 2.7 is simply to remove the 2 calls to url_to_postid() in function paged_comments_fancy_url. This call was there to prevent false positives, but now that WP itself uses the same path segment I’d used in the plugin, the call does actually return the valid post ID where it previously returned false (0).

You can see a visual diff of the changed file. I’ll try and put out a release soon – I’m hoping to use the WP settings available in 2.7 to allow users to override the ones specified in the plugin’s config file.

gt: The URL structure might not be a big deal for new users of the plugin, or even for some existing users, but if your URLs have been indexed/linked to/bookmarked, then changing the URL structure can be a big problem. In fact, it’s probably no accident that the WP developers chose the same comment page identifier I’d used in the plugin – it allows users of the plugin to switch to WP’s comment paging without having to worry about broken URLs.

I got the plugin working for my site. The issue is that some of my other plugins don’t work, plugins like Wp-Grins and Ajax Edit Comments. I read through the intro, so am I supposed to copy the things from the comments-paged php file to my comments file of my theme to insure compatibility? Not sure how to get it all compatible with this plugin.

@HEIKO – I noticed your site uses the ajax edit comments and the paged comments plugin without problems. Can you tell me how you got these two plugins working together? It would save me alot of trouble. Thank you in advance.

One more question popped to mind, I saw that you use search comment plugin, but when I tried using google to find it, it did not come up with anything. Can you give the link to it, or where you can get it?

Is it right, that the possibility to reply to a comment for every user is disabled by the paged-comments plugin?

I am using wp2.7 and the latest paged-comments plugin (2.9.1) and the only place where I am able to reply to a comment is on my dashboard or administration for comments… then listed as normal comment and NOT as reply…

So the native threaded comments from wordpress are disabled… are you gonna fix this?

Just a quick note from a long-time user of your plugin (now drawn away to the dark side of WP’s built-in paging, though…)…

In case it might be of any use in terms of building up handling for threading and the funky case of numbering when threading is enabled, I’ve just today released a plugin that provides numbering for WP’s built-in threading, and a trac submission to fix a page counting bug in the WordPress core (report number 8973). Here’s the counting plugin:

Hi keyvan
you plugin is awesome , but make a problem with wordpress 2.7 , when enable the plugin , the reply to comment function of wordpress 2.7 can’t work . i mean no link or reply button can see on any comment :/ also showing threaded comments for replies breaks after enabling the plugin , could you fix that on next version? thanks

I had a few questions. I am using a blog in Arabic, hence, the info of each comment (date, “Says”, etc.) is translated to Arabic in my themes. However, when I installed the plugin, it overwrote my comments’ page code and displayed another with different formatting and language.

I did try to edit the main plugin page and translate things like “Show all”, but I couldn’t find a place to have my original comments’ theme to be used. I would be grateful if you let me know how to do that.

I did try to edit the main plugin page and translate things like “Show all”, but I couldn’t find a place to have my original comments’ theme to be used. I would be grateful if you let me know how to do that.

Hi keyvan, I discovered a incompatibility from “Paged Comments” (Vers. 2.9.1) to the WP Theme Atahualpa 3.4.x (but it worked with Atahualpa 3.3.3).
The whole Sub-Content (posts & pages) didn’t appear, though the Startpage (Home) seemed to be OK.
The Theme is at http://wordpress.bytesforall.com/
My Blog runs with WP 2.7.1.
Thanks for Your work

Thanks for the comments, everyone. Please see the note at the top of this page — I have decided not to continue development of the plugin as WordPress now offers comment paging in the core. The URL structure is almost identical (if you used the plugin with fancy_url enabled) so it should be fairly straightforward to switch to standard WP comment paging.

I’m trying to enable the “fill_last_page”-function for one individual page. In the config.php I’ve chosen fill_last_page = false but I would like it to be “true” for this one individual page. I tried to add a custom field called fill_last_page but it didn’t help anything. Any tips what to try next?

281 Trackbacks

[…] good way to keep your comments tidy when you have a tremendous long list of comments. Check it out there and click Show All at the comment section. You will know what I mean. I have seen a lot of blogs, […]

[…] (click to see the screenshot) Yup, finally, it’s separated. It even support the famous Paged Comments, of course, with a little hacked. Please download the plugin from MangoOrange instead. I have sent […]

[…] needed if your comment number ever goes above ten, or in case you expect it to do that soon, is the Paged Comments Plugin. This automatically reverses the comments too, but you can undo that process, if you prefer. The […]

[…] to achieve the contact form. This fantastic plugin is from Mike Cherim and Mike Jolley.I also use Paged Comments by Keyvan Minoukadeh to make comments paged. Thanks to you guys. You are so talented web […]

[…] should work with most plugins. It has plug & play support for these: Subscribe to Comments, Paged Comments, LMB Box Comment Quicktags, WP-PageNavi, WP-Email, WP-Print, WP-PostViews and Sociable. Tested with […]

[…] WordPress has made available the paginate_comments_links function in the core (thus obsoleting the paged comments plugin). Instead of having your visitors click on Previous or Next Comments links, you can display a more […]