WordPress Paged Comments Plugin
Paged Comments is a plugin for WordPress to allow comment paging. Useful for those popular blog entries receiving many comments, or a simple guestbook page within WordPress.
Features
- Comment ordering: show latest comments first, or last
- Specify number of comments to display per page
- Enable paging for all posts and pages, or on a per-post basis
- Give users the choice to view all comments on one page with a ’show all’ link
- Specify the first or last page of comments to load by default
- See paged-comments-config-sample.php for more
Download — Latest Version
- Version 2.8 (2008-08-19) (zip file) Release notes
- View code at the WP Plugin Repository
- Work in progress: Ajax-style Paged Comments (no download yet - AJAX support coming in version 3)
Related Downloads
Installation (for Wordpress 2.3+)
If you’re upgrading from a previous version, skip these installation steps and read the upgrade steps.
- 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
- 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:
- White Town guestbook
- Thank You Stephen Colbert (over 60,000 comments!)
- Playstation
- eBay
- Mashable
- TorrentFreak
Questions?
- Read the FAQ and if it’s not answered…
- Leave a comment or email: keyvan (at) k1m.com
Donate
I work on this plugin in my spare time. If you find it useful, please consider donating to help me continue work on the plugin. (This plugin is, and will remain, free software, please only donate if you want to.)
Paid Support
If you run a commercial site and you’re having difficulty setting up paged comments, I now offer paid support. Feel free to get in touch: keyvan (at) k1m.com
Ciao, I use this template http://www.jide.fr and when activate the plugin, lost the gravatar immages.
Can help me?
Hi again Keyvan.
My problem (with k2-timesince plugin) is now fixed with the last version (2007-01-11). Thanks a lot
[...] Blog technical note: I reordered the comments on very long posts, so the new stuff is at the bottom where most people expect it on blogs. Keyvan recently wrote a fix for his Paged Comments Word Press plugin. He’s awesome, and if I had money in my PayPal account right now, he’d be getting a tip today. [...]
Keyvan, sorry I misunderstood this:
“Note: ordering is implemented this way so new comments don’t
// displace older comments on a page.”
Switching to ASC now…, and everything is peachy.
Thanks again.
Great stuff - working perfectly now. Thanks a lot.
Rick: Sorry, Saskboy is right—I stupidly linked to the previous version of the file in my comment. I’ve updated the link in my comment now, and the zip file at the top contains the latest version of the file.
Saskboy: You should be able to order the posts anyway you like by editing the config. By default the ordering is set to descend. You can have either ascending mode or descending mode without affecting the comment permalinks. The only way permalinks will be affected is if you also enable fill_last_page. Am I missing something?
Thanks Saskboy - I will try that.
Rick, I downloaded just the .php file and it was the same old one I think, but the linked zip at the top of this page did the trick when I deactivated, updated the .php file, and reactivated the plugin.
Thanks very much Keyvan. The update fixed the problem with Trackbacks and Comments claimed as closed. When I get some money into my PayPal account from a sale of something, I plan to send a couple dollars your way.
Now, about ordering the posts the other direction…?
Is it just undesirable because some kind of permalink is broken, or are there other implications?
No, it still seems to deactivate comments and trackbacks.
I just replaced paged-comments.php by the new one and changed nothing else. Correct?