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
[...] V primerjavi z večino klasičnih spletnih strani boste imeli z uporabo WordPressa veliko prednost, saj boste lahko sami na enostaven način dodajali in spreminjali vsebino in sicer kadarkoli boste to želeli. Poleg tega boste lahko z objavo komentarjev, člankov ali novic skrbeli za vzdrževanje stalnega dialoga z vašimi obiskovalci, ki bodo lahko vaše prispevke tudi komentirali. Če bi želeli že vnaprej preprečili kakršnokoli nezaželeno smetenje s komentarji, ki se je v zadnjem času zelo razpasilo po spletnih strani, potem vključite dodatek Akismet, ki je že vključen v osnovno različico WordPressa. Za lep, predvsem pa pregleden izpis posredovanih komentarjev bo poskrbel dodatek Paged Comments (http://www.keyvan.net/code/paged-comments/), ki bo posredovane komentarje razbil na več strani. [...]
[...] Keyvan WordPress Paged Comments Plugin 作者網站: http://www.keyvan.net/code/paged-comments/ [...]
Thank you very much for sharing.
I always have to install plugins in my daughters blog and she wants almost everything there is. But your is a good way to save time.
Thanks all, for the comments and suggestions.
Hoboken: Can you please repost what you replaced—the code for some reason wasn’t included in your comment.
eyn: I removed that step when I released version 2.5, which looks for
comments_template()and replaces it with thepaged_comments_template()each time the template is loaded. Did you have problems running version 2.5 without manually editing your template file?One extra tips here from my personal experience. This plugin can actually help your SEO since search engine does not like huge pages. For example, I have a blog post that have over 400 comments so far, for a period the blog post just sort of disappeared from Google and after I implemented this plugin it goes back up to its original top search result position (after Google reindex the post). So yeah, you might consider adding this information to your main post to persuade those who are still wondering if they should implement this plugin for their fairly popular blog.
if (function_exists('paged_comments_template')) paged_comments_template(); else comments_template();The above code is very important and need to be inserted into single.php (and page.php as well if your page allows comment) to replace the original comments_template() in order for this plugin to work on many themes. I believe this should really be added to the installation instructions of the main post to save people trouble going through the comments to find this “essential” installation step.
Anyway, awesome job on this plugin, thank you so much. My only complain would be the “missing” installation step that I mention above. Please please add it to your installation instruction and make life easier for those who are scratching their heads off trying to figure out which installation step they have messed up.
FYI, I reverse engineered the solution to my count problem.
My non-standard theme had this code to display the comment count:
I replaced that with:
Hi
I want to use trackbacklist but your line that counts the comments counts the trackbacks as well, so the formatting is messed up. is there anyway of the count only tracking comments?
EB
Thanks for this plugin