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
The page template within the default WordPress theme (and probabaly other themes) doesn’t include the code required for comments to be left and viewed. WordPress is, however, capable of linking comments to pages in addition to regular posts. Look in the theme folder and you’ll probabaly find a page.php file (the template for WordPress pages). If you edit this file and copy over the line(s) of code that calls comments_template() you’ll find comments will work within pages too.
Some themes (for example, K2) include a page template and a “page with comments” template. This gives you the option of selecting the appropriate template within WordPress when creating a new page.
Hi
Somethings really wierd here… or? i’m creating a static page with comments enabled but it doesnt show any commentfields or textboxes at all…? I have Random_Image as theme.
am i wrong? shouldnt i just write/create a page and allow comments?
Thanks, very useful. I modified it a little to display the last comments at the bottom of the page, but still sorting the pages from last to first.
Ampersand and Stephen:
To alter the style of the comments you’ll have to fiddle with the CSS.
Here’s the CSS snippet for comments I use on my own site:
You’ll probably have to alter this to suit your own site, but I hope you find it helpful. The last CSS rule on div.comment-number specifies where the comment number will appear.
To set a limit on the number of comments appearing on each page you’ll have to modify the paged-comments.php file and alter the line with the per_page value: $paged_comments->per_page = 10;
Frank:
Thank you! I’ve added a link on this page to your translated German version.
Massimo:
A very simple solution can be found here. The last solution on that page is implemented on the site.
Hi,
beautiful plug-in but would it be possible to have comments only in the first paged one, the one with the article body and NO article body text in the following pages?
example:
http://www.example.org/2005/08/12/my-article/
includes the article plus the first 10 comments
while
http://www.example.org/2005/08/12/my-article/comments/2
includes ONLY the following 10 comments with NO article and possible a link the the former page.
Many thanks.
Massimo.
very nice plugin for wordpress!
i have translate your wp-paged-comments.php in german, for default german theme.
Link: http://www.bueltge.de/wp-content/download/wp/wp-paged-comments.php.txt
With best regards!
[...] 순서도 결정하고, commeents가 많은 경우 페이지 처리 하고 싶은 경우 WordPress Paged Comments Plugin을 다운로드 받는다. 이렇게 했지비~
Entry Filed unde [...]
Nice work chief
[...] . I’m currently using the following plug-ins… Front Page Cats Gravatars Paged Comments Post Templates by Category Post Updated RunPHP wpContactForm WP-Grins wpPaginate [...]
I inserted the code, but all I see is my comments being numbered above the comment. I’m not seeing the numbers at the bottom and so on. I have not modified the code of the template at all- fresh out of the box. And when I get the plugin working, how do I set a limit on how many comments I want on a page? Do I have to modify the wp-paged comments.php? I’m using the falling leaves template, and I replaced the comment_template() code in the index.php page and the single.php page.
Thanks for the help