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.7.1 (2008-07-14) (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.5
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
Yes, it’s working well now:
http://www.sarangi.info/archives/91
Using the Static Frontpage plug-in by Semiologic is not a problem as I even tried turing it on and off to no avail, and am using it still. The paged comments plug-in started working normally only when I deleted the script from the single.php for quite another reason (mentioned in my last response) - mere coincidence it was…
Hi Taimur, I have to admit I’m still a bit baffled as to why it wasn’t working before. It could be that the other plugin was interfering and caching the page - preventing the display of the dynamically generated comment page number - but I really can’t be sure until I try it. I’m glad you’ve managed to get it to work. If you experience any other strange problems, let me know and I’ll try running the two plugins side-by-side myself to see what it could be. Thanks for the update!
I use the Default Kubrick theme and did not want this text to appear on my posts pages:
“This entry was posted on Wednesday, November 16th, 2005 at 12:00 pm and is filed under Events. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Edit this entry.”
So I excluded the following script from my single.php file:
Not only did the above-mentioned text disappear as desired, the paged comment fuction with all the page and comment numbers, etc. started to work normally for me as well. I don’t know why that happened but it did, and I am very happy. Thank you for this excellent plug-in!
I am also using the static frontpage plug-in by Semiologic. Do you think that could interfere with comment page numbers?
Anyway, thank you very much for your time. I hope I can find an easy solution with your help. Otherwise, please don’t waste too much time on my case.
Warm regards,
Taimur.
Taimur, I don’t have much time to look into this now. Will try and see what the problem is tonight. I had a quick look at your page’s HTML source and it does not include the page numbers (so no CSS interference). Are you sure you’ve followed all the installation steps? If you are using one of my bundled templates your HTML source should include the comment numbers. I’ll have another look tonight.
Thank you for the quick reply! Yes, the code you mentioned exists in the comments-paged.php file.
I have enabled the plug-in again and made 12 test posts on this page: http://www.sarangi.info/archives/91
The descending order of posts has been put into effect by the plug-in but the page numbers do not appear.
Left that last comment unfinished, sorry. If you do find the page number in the HTML source, but they don’t appear when you’ve viewing the page, then the theme you’re using probably has CSS rules affecting the display of the page numbers. If that’s the case, let me know what theme you’re using and I’ll take a closer look.
Taimur, the comments-paged.php template file pulls in the page numbers. Here’s a snippet from comments-paged.php (taken from the plugin’s /themes/default/ folder):
The best thing to do is enable the plugin, load up the page you’re expecting the page numbers to appear on, and look through the HTML source for the page numbers.
Let me know if you’re still having problems with the plugin.
I installed the plug-in and it was working well for all the test comments I posted, except for the fact that when I posted the 11th comment, the last ten disappeared and there was no page number visible through which the previous comments could be accessed. The number of responses, etc. was all there but the previous comments that had be relegated to another page were simply not accessible as there was no comments page number visible. I have disabled the plug-in on my site for now but would really like to have it for my Guest Book.
Could you please tell me what is the code for comment page number and where does it reside?
Thank you.
Nice plugin. Thanks!