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
2.7.1 fixes the issue where incorrect permalinks were displayed on the ’show all’ page.
Stephen: I think you missed out a call to paged_comments_url() in the Sandbox template. I’ve added it to trunk, you can view the difference. Let me know if that solves it.
I’ve come across a bug.
Let’s say I have 5 pages of comments on a post. On the “top” page, each comment has a permalink. When enough comments are added that comments page 6 is added, the comments on page 5 now have a _different_ permalink.
This is broken. Permalinks must not change, ever. By definition. So, comments on the top page must have the /comment-page-x/ added to the URL.
(The comment-page-x URL _works_ even for comments on the top page, it’s just not the link presented.
…unless I did something wrong in the Sandbox comments-paged/php ?
Thank you all for commenting, I’ve been so busy that I haven’t had time to respond. I’ve just released a new version with the following changes:
Let me know if you come across any problems. If you’d already posted about a problem that I haven’t addressed in this release, please remind me again. I hope to have another release out soon.
Hi –
I made a comments-paged.php that works with the Sandbox theme. Thanks for the plugin.
http://striderweb.com/nerdaphernalia/2008/07/paged-comments-for-wordpress-sandbox-theme/
[...] Paged Comments 插件支持模板。这个插件可以将评论分页,对于评论比较多的名博尤其有用,Apple Theme 已经集成了该插件所需要的评论模板文件。 [...]
[...] 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 [...]
[...] (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 [...]
[...] 到目前为止, 我只试验过这个函数, 具体还未利用到。 不过 paged comments 就利用了这个函数解决了本要修改主题模板的麻烦, [...]
[...] WordPress Paged Comments Si tus visitantes son de los que les gusta comentar, este plugin te vendrá bien, porque te permite paginar los comentarios echos a cada entrada. [...]