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
Lonnie, I’m not quite sure I understand your question. As far as I know most WordPress themes will display all comments associated with a post (or page) when that post (or page) is viewed on its own. So I’m not doing anything special to display comments on this page, you’re simply viewing a single entry. I think the comments link only appears when you’re viewing a number of posts (e.g. the latest posts displayed on the homepage). Let me know if I’ve misunderstood your question.
How do you get the comments to all be displayed automatically on this page instead of forcing the user to click the usual ‘comments link’ to see them?
I’ve been trying to find out how to do that on my site for days now with no luck…
Help?
Is there a way to automatically clear the Name and Mail input text area after the comment is submitted? For privacy I need that infor to be cleared after submission.
Sorry Keyvan, another problem. I’ve implemented the fancy url to “true”. But the new permalinks for the comments don;t work. I will get redirected to my home page, with a “Not Found, Error 404″. I have permalink on at my site, and it works perfectly. I’ve only had problems with your fancy url not working. I’ve added the 2 lines after “#end wordpress” in .htaccess. This is how my .htaccess looks like now:
think you can help? cheers!
Dear Keyvan, thanks for the great support and implementation! Everything works smoothly, it’s clean as a whistle. I’ll be spreading the word to all Pool theme users. Cheers mate!
Gio, the comments-paged.php for the Pool theme is available here: http://dev.wp-plugins.org/browser/paged-comments/trunk/themes/pool/. You’ll need to add the additional CSS (found in the readme.txt file) to your style.css if you want to display the comment numbers on the top right corner. You can see it working here: http://www.keyvan.net/wordpress-testbed/?p=3#comments
Hi Gio, I’ll try and create a paged comments template for that theme (it appears to be a popular one). Hopefully tomorrow, but could be later.
Hi Keyvan, thanks for the great plugin. I’m using a WP theme known as Pool ( http://www.lamateporunyogur.net/pool ). I’ve installed and activated the latest version of your plugin. I’ve edited the necessary phps, replacing the call function just as in point 4 and 5 above. I’ve not edited the CSS. Please click here http://img97.imageshack.us/img97/3892/poolpcproblems9mo.jpg to see what my problems are. I’ll sum up my problems in words as well:
1) the comment entry box is way off.
2) the posted comments have lost the original format of the Pool Theme. Original theme has alternating grey/darkgrey box.
3) The comment post number position: i wish to have it at the top right corner of the posted comment box.
4) i wish to retain the original theme elabarotion on some XHTML instructions below the comment entry box.
I’ve tested it on both Firefox 1.0.7 and IE 6.0, and both gave the same result.
Since i’ve not touch the theme’s CSS, i’ve cut and pasted the Comments components of the CSS for you to examine:
If only you can download the Pool theme and try to edit it such that your plugin will work perfectly with it, that will be really great! If otherwise, i would still appreciate if you can edit the css as you see above, such that all my problems could be rectified… Thanks for your time and effort! I hope to hear from you soon. Cheers.
Hi Keyvan, I’ve merged your paged comments plugin and Brian’s threaded comments plugin here: http://gleamynode.net/wordpress/archives/106
I hope this can help ppl who encountered the same issue.
Hey,
I’m trying to use your plugin with Brian’s Threaded Comments. It seems that I will need to edit paged-comments.php. Can you tell me how I can do this? I have very little knowledge in these kind of things.