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
[...] I’m going to install the WordPress Paged Comments plugin, found at Keyvan’s excellent site. // Individual posts can still enable paged comments by adding a custom // field: ‘paged_comments’ with the value ‘on’. [...]
[...] Das ist ein Punkt über den ich mir eine Menge Gedanken gemacht habe. Wie sortiert man die Kommentare? Zuerst den ältesten oder zu erst den, der als letztes geschrieben wurde, also noch am neuesten ist? Schwierige Frage, im Moment bin ich dabei es eher konventionell zu halten also geordnet von alt zu neu. Diesbezüglich vertraue ich auf euer konstruktives Feedback, da es für mich da keine 100%-ige Antwort in eine Richtung gibt. Bei dem Punkt Sortierung der Kommentare geht es mir noch um etwas anderes. Ich denke jeder hat es schonmal erlebt, dass Beiträge zu denen eine Menge Kommentare abgegeben wurden eine halbe Ewigkeit laden. Das ist natürlich nicht gerade angenehm für die Blogleser. Dafür hab ich jetzt ein Wordpressplugin gefunden, dass die Kommentare in mehrere Unterseiten aufteilt. Paged-Comments heißt das ganze und verbessert die Ladezeiten erheblich. Bei mir sind mir die Ladezeiten bisher nicht negativ aufgefallen also ist der Einsatz nicht unbedingt Pflicht. Wenn einem etwas negativ auffällt bitte ich wie immer um eine Meldung, danke. [...]
Keyvan: ok …
prem: This is covered in the FAQ.
Pavel: I’m sorry, I haven’t had time yet. I’ll let you know when I’ve posted up a solution.
Need some help. I am using the paged-comments.. nice plugin.
But other than the first page, ie when someone clicks on the other numbered comments pages I want to display just the comments not the complete posts. Can someone tell me how to do that.
Basically for comment pages 2 onwards I do no want to see the post on those pages.. just the comments. I fear that on every page if we have the post displayed search engines will treat them as duplicate pages as content will be very similar.
Thanks.. pls reply here..
Keyvan: thanks In Advance
Hi Pavel, I understand now. There’s no option to enable this behaviour at the moment. If I get some time tomorrow I’ll post up a quick hack to allow you to do it.
Hi Keyvan … thanks for replay, but it is not exactly what I want …
I want comments ordering in ARC mode and latest comments on the default page …
for example: I have 421 comments, with 50 comments per page … then, I would like to display comments 371 - 421 on default page therewith that comment 371 would be on the top of the page and comment 421 on the bottom.
Pavel, to see the latest comments you will have to set ordering to DESC. If you want the 50 latest comments to always be shown on the default page, you will also have to enable the fill_last_page option. I hope I’ve understood your question. If not, please post back.
Hi Keyvan, I have almost 500 comments in some posts on my blog and then you plugin is very intersted for me. Thanks for it.
But … I have one problem. I want to preset comments ordering to ASC mode with 50 comments per page. But after it when I click on some post with around 500 comments I see comments 1-50 … so 50 oldest comments. But I want see 50 latest comments on first page …
Can I do it someway ??