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
As you can see in my pingback, I fixed it .
Thanks Keyvan!
[...] He instalado en Pandeblog el WordPress Paged Comments Plugin que permite separar los comentarios de las entradas en varias páginas diferentes. En los posts muy populares (como los de RBD o los de Anorexia y Bulimia) es muy útil ya que una página con más de 700 comentarios es muy difícil de cargar con rapidez y supongo que trae de cabeza a la base de datos, ahora con 50 comentarios en cada página supongo que mejorará el rendimiento y la experiencia del usuario. Kevyan (el desarrollador del plugin) me ha respondido la consulta que le hice por mail y he podido solucionar un inconveniente que me surgía. [...]
This is beautiful! Just what I was looking for.
It’s now successfully employed at http://www.reclaimtheswastika.com/your-say/ where we are using WordPress simply to allow a single page for readers to leave a comment. I had got tired of seeing so many comments on one page…
A suggestion for the documentation: it would be useful if you gave the specific lines of code that could be added or changed in the theme template. The site has a custom theme and a couple of other comments-based plugins installed, so I needed to make line-by-line comparisons between the existing template code and the code in your new comments template.
Well done and thanks.
I did the change you said, but unfortunately I get the same error.
I know is the theme, but this is a test site, I want to use your plugin in my main site (www.pandeblog.net) that really have posts with hundreds of comments.
Thanks
Dom2: Thanks!
Camps: Thanks for bringing that issue up again, should be fixed in the next release.
Pande: Could you try opening your single.php template file in the theme you’re using and replacing the call to
comments_template()withif (function_exists('paged_comments_template')) paged_comments_template(); else comments_template();Let me know if that fixes it.
Hi, I don’t know what’s wrong.
I have diferents header for single pages and index. I get this error above the whole blog.
http://www.blog.solonatacion.com/2006/09/20-question-tuesday/
What I see is …..
Warning: include(header_single.php) [function.include]: failed to open stream: No such file or directory in /home/.ergo/pandeblog/blog.solonatacion.com/wp-content/plugins/paged-comments.php(79) : eval()’d code on line 1
Warning: include() [function.include]: Failed opening ‘header_single.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/.ergo/pandeblog/blog.solonatacion.com/wp-content/plugins/paged-comments.php(79) : eval()’d code on line 1
Thanks…
Nice plugin, thank you a lot.
I have the same problem of pavel.nesvadba (view comment 145)… notthing new about it?
Bye!
Thank you ! Very good plugin. It’s easy to use
[...] 當然如果你通曉PEAR,基於上面的作法,你可以再自己寫出分頁的效果(或是用paged comment這個外掛),而喜歡巢狀回覆又喜歡分頁的話,可以參考Paged Threaded comment這個插件,但是單純喜歡我………..我是說,跟我一樣的作法,又搞不懂程式的話,這裡有個根據paged comment寫出來的不賴留言板外掛可以試試。 [...]
Good work, thanks for the update but as Raj already said Im also expecting the Ajax version with this new release.
I’ll keep waiting….