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.9.1 (2008-12-23) (zip file)
- 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. 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:
- White Town guestbook
- Thank You Stephen Colbert (over 60,000 comments!)
- Playstation
- eBay
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
Hello everyone,
Just a heads-up to everyone that we got this up and running smoothly on http://www.lauragainey.org - a memorial site for Laura Gainey, daughter of Montreal Canadiens Bob Gainey.
The site is running WP 2.05, K2 0.9.1 and we succeeded in installing Paged Comments 2.5 as well as the theme for K2. It took about 10 minutes (and 20 minutes of carefully reading the instructions and previous comments here) to fully deploy. It’s looking good.
Many thanks to Keyvan for this plugin. The Laura Gainey site is a non-profit tribute site, but if we get it on to other sites we host or manage, we’ll be sure to send a few bucks your way for your efforts.
Great work.
Rob
RTM Communications - http://www.rtm.net
Edit: Here are my settings:
all_posts = true
all_pages = false
per_page = 20
ordering = ASC
page_range = 11
fancy_url = false
show_all_option = true
fill_last_page = false
show_all_ordering = ASC
default_page = last
I’m stumped!!
I have a bug…
I finally got it working.. but each pages starts the numbering again.. 1.. 2.. 3.. 4.. instead of keeping the numbering consistent… like you have 223.. 224… 225… etc.
What may be the problem?
Thanks!
[...] Paged Comments http://www.keyvan.net/code/paged-comments/ 用来给评论显示分页的插件,安装需要更改模板。 [...]
der: Thanks!
rod: Paged Comments can’t do what you want—it only acts on comments associated with individual posts/pages.
Papercuts3: It should be possible. It’s not something I’ve looked at, but I can’t see why you couldn’t include it as part of a theme.
[...] Сегодня поработал немного над шаблоном блога, кое-где исправил буржуцкие тексты на русские, скачал и установил плагин для постраничного просмотра комментов paged-comments-2.5. [...]
Is it possible to integrate this into a theme rather than a plugin. I mean as part of a theme package entirely, for instance for K2?
Hi
I’m traveling and have every day a few posts.
I would like to have all comments of these posts on one page, and not only assotiated to the posts. Can paged coments do that?
best Rod
Excellant plugin! I have a post that has over 500 comments and is such a pain on my server when it loads.
Camps: New release fixes the
fill_last_pageissue when ordering is set to ASC. See revised code in action.Pande: Glad to hear it!
Premasagar: Thanks! Will see what I can do about a guide for customising templates to work with the plugin.