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
Tony: If you look at the difference report (specifically diff #3), you’ll see where I’ve included code to give you the correct comment number. In addition to that I disabled the list numbering that WP uses by default with the following CSS rule: style=”list-style-type: none;”. You’ll see that in the diff report as well. Hope that helps.
W-Shadow: I’ll have a look into this. Thanks for letting me know.
Johan: I’ve never used the auto-update feature myself, so I’m not sure how the update is handled. But I’ll take a look and see if I have the same problem. Thanks for letting me know.
Hi Keyvan!
First time for me that I use the automatic plugin update function of WP 2.6 and Paged comments auto-update (from 2.7.1 to 2.8) deleted my previous ‘paged-comments-config.php’ file…. Fortunatly, I did this auto-update only on my local testing-server, just before updating WP to 2.6.1 (that I will do in a few minutes) and I could retreive my settings from my online server.
It seems that the auto-update fully erase Paged comments folder… Is it a bug that you could fix (is it already fixed?) or have I done something wrong?
Again, many thanx for this plugin
!
Johan
I think I’ve found a bug : when using this plugin the comment form fields (Name, Mail, Website) are never pre-filled with the info stored in cookies. I’ve tried it on two blogs (WP 2.6.1, default config for the plugin) and it happens on both sites.
By the way, I’ve verified that the cookies are correctly set and are retained by the browser.
Keyvan
Many thanks for your help in #706, and I now have Paged Comments 2.8 running with Tiga-06 and looking good. There is just one problem, referred to by Hoboken in #248 and Roger in #676. The numbering starts again from 1 on each page and I can’t find a fix in any of the other comments here. No problem when using All Pages and the permalinks seem to be OK..
The relevant code in the template file seems to be:
<a class=”comment-num”
href=”#comment-<?php comment_ID() ?>”
title=”<?php _te(’Permanent link to this comment’); ?>”>
<?php echo $comment_num ?>
[Edited to fix markup]
Unfortunately I am nor a php mechanic and I am reluctant to fiddle with this as Paged Comments will be running on only one page on my blog (where there are over 1200 comments) and I don’t want to risk jogging everything.
Sorry to come back to you yet again.
[...] solution is the Wordpress paged comments plugin. This little plugin allows you to have paged comments on your blog instead of having a single page [...]
caro: You specify the language in your wp-config.php file. See here. Let me know if that helps.
Rick: Thanks for letting me know. I guess the automatic upgrade option uses the WP plugin directory. I just tried downloading the current release from the plugin directory and it had the nesting problem you mention. Unfortunately I don’t have much control over that - and I’ve had problems with it in the past. As far as I know I can’t tell it to use the releases that I make available on my site. I’ve just restructured the directories on the subversion server, however, and that appears to have fixed it. Thanks again.
Problem with the 2.8 upgrade.
Initially I used the upgrade button provided on the WP plugin page. It seems to do it but the paged-comments entry on the plugins page vanishes. On my second one I did it by hand and it was ok. Looking closer it seems that when done automatically it ends up too deep in the directory hierarchy i.e. …\plugins\pages-comments\paged-comments\… When I moved it up one then it was ok again. The zip seems to be structured like that as well.
Excellent work! But, I want to use the Spanish language, what should I do?
Paris: Thanks! Glad it’s working for you now.
[...] update v2.8 20 August 2008 19:40 Cel mai frumos scris si util plugin de paginare a comentarilor - Paged comments a lui Keyvan Minoukadeh - a primit un update pe care il asteptam de multa vreme: versiunea 2.8 rezolva problema (cu lipsa) [...]