WordPress Paged Comments Plugin

This plugin is no longer being developed. WordPress has had paged comments support in the core since version 2.7. The comment paging you see here is using WordPress’s built-in code and not my 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

Installation (for WordPress 2.3 up to 2.7)

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.

  1. Download and extract plugin files to a folder locally.
  2. Read through and edit paged-comments-config-sample.php to configure, then save the file as paged-comments-config.php.
  3. Upload the whole paged-comments directory to /wp-content/plugins/. The plugin files should now be in /wp-content/plugins/paged-comments/.
  4. 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:

Questions?

Paid Support

If you run a commercial site and you’re having difficulty setting up paged comments, I offer paid support. Feel free to get in touch: keyvan (at) k1m.com

540 Comments

  1. Posted 3 October 2007 at 7:50 pm | Permalink

    Sorry all, I’ve been too busy the last few days to look into some of the reported problems. I’ll be looking at the 2.3 issue very soon and some of the other issues reported here. If you’ve got it working with WP 2.3 or would like to share any fixes, please post or email. Thanks.

  2. Posted 4 October 2007 at 8:54 am | Permalink

    Hello, just to thanks a lot as i am actually owning a wordpress 2.1.1 website and your plugin worked perfectly, in 5 seconds lol.

  3. Posted 5 October 2007 at 12:58 am | Permalink

    WP 2.3 issues: I tried upgrading my WP 2.2 install to version 2.3 and the plugin works for me. I will need more information from anyone experiencing problems. (Did it work before when you were using WP 2.2? Are you using the latest version of the plugin?) I don’t have much time to test it extensively at the moment, so anything that can help me track down the problem would help.

    Mosey: I tried Hemingway EX and it appears to work okay without any changes (at least for me).

  4. g t
    Posted 6 October 2007 at 12:08 am | Permalink

    Plugin worked on 2.2 -> Updated to 2.3 -> still working (for me) :)

  5. Mosey
    Posted 6 October 2007 at 12:11 am | Permalink

    Keyvan: Thank you for testing Hemingway-Ex! I really appreciate it! :) I apologise for not clarifying that I had made the changes to ensure that the comments display would be the same as the ‘default’ comments on Hemingway-Ex(but paginated/descending order), as Paged Comments seems to use a slightly different template. I was under the impression I had made the suitable changes, but had the error instead >_

  6. Mosey
    Posted 6 October 2007 at 12:12 am | Permalink

    (continued. sorry I cut myself off again)
    I shall certainly try again as it’s probably my own editing at fault. Do you think it might be more straightforward for me to add on the necessary CSS values instead of editing the template?
    Thanks again!

  7. Posted 8 October 2007 at 12:32 am | Permalink

    Hi Keyvan,

    It’s been a long time that I couldn’t work on the technical side of my blog and I’ve just made a test with a newly downloaded WP 2.3 (which would replace my actual 2.1 one) and at this time I don’t find any issue. But I did the test with a very small set of other plugins : authUI, Chunk Urls for WordPress, ImageManager, Live Comment Preview and Login Stayput that I also test on WP 2.3. It work both with the default WP theme and a modified one.

    And best : paged comments does work natively now with paged-posts (with the tag , for those who could be interested) ;) .. Thanx for that upgrade, I will not have to make any dirty-hack (:D) for that..

    Regards,

    Nicolas

  8. JT
    Posted 9 October 2007 at 7:49 pm | Permalink

    I’m trying to get the plugin to work with the Alternate Comment Form plugin, but they appear to be incompatible. Any ideas on how I could combine the two or get them both working at the same time?

  9. Mathijs
    Posted 10 October 2007 at 12:46 am | Permalink

    Hi Keyvan,

    There seems to be a small “bug” in this plugin. I installed it and everything worked like a charm exept when you visit the attachment pages it’s totally messed up. It ignores the entire attachment page when the plugin is activated.

    Do you perhaps know what i should do to keep the regular attachment.php page with your plugin activated. Other than this small issue it works like a charm and i’d like to use it for the posts etc.

  10. JT
    Posted 10 October 2007 at 1:34 am | Permalink

    Also, I am attempting to install the plugin on Semiologic… Not having any luck with that… even minus the Alternate Comments Form plugin.

  11. JT
    Posted 10 October 2007 at 2:51 pm | Permalink

    I am getting an error: “Call to a member function num_pages() on a non-object” when trying to install to Semiologic. Any ideas?

  12. Posted 11 October 2007 at 6:05 am | Permalink

    I have the same problem as Anand(503) said.

    It looks like a fancy_url problem. Because when I turn off fancy_url in paged-comments-config.php. Everything works like a charm.

    Is it possible to fix this?

  13. Posted 12 October 2007 at 11:40 am | Permalink

    I’m having the same problem as Anand (503) above. When I call http://www.4-14.org.uk/thats-my-king-s-m-lockridge/comment-page-9/#comments I get a 301 redirect back to http://www.4-14.org.uk/thats-my-king-s-m-lockridge#comments

    I’m using WordPress 2.3 with the K2 theme.

  14. Posted 6 November 2007 at 1:38 pm | Permalink

    The fancy_url option don’t work on wp 2.3

    Any ideas?

  15. Posted 11 November 2007 at 8:25 pm | Permalink

    Bug feedback.

    Using WordPress 2.3 with Mistylook 3.5 theme.

    Mistylook features a built-in “author comment highlight” which implements a unique CSS styling on comments which the author of a given post has made.

    When I enable Paged Comments 2.6.4 (2007-07-31) this highlighting is disabled/removed.

    You can see an example of the highlighting working here.

  16. Posted 11 November 2007 at 8:28 pm | Permalink

    oh balls, sorry, that example has the wrong link (obviously). You can find an example of the highlighting here.

  17. julius
    Posted 27 November 2007 at 7:43 pm | Permalink

    Hi,

    Thanks for the great plugin, I’m using since the first version.

    With wp 2.3.1. if the user is logged and the comment is awaiting moderation, the comment is not shown to the user (with or without the note “Your comment is awaiting moderation”).

    If the user isn’t logged, all works fine and the comment awaiting moderation is shown to him.

    I looked for solving it, but I couldn’t.

    Thanks.
    Julius.

  18. Posted 1 December 2007 at 3:55 am | Permalink

    Thanks for all the comments everyone. Sorry it’s taking a while, but I will start looking at the WP 2.3 issues you’ve posted. Expect an update soon.

  19. Posted 7 December 2007 at 3:07 am | Permalink

    xxxx

  20. rich
    Posted 8 December 2007 at 11:57 pm | Permalink

    I need to be able to hide comments on certain pages from everyone apart from:

    Me (admin)
    One user (specified by me)

    The ‘one user’ would be different for every page.

    I hope that makes sense! I am trying to build an educational site, and I need comments on some pages to be only visible to me, and the student I specify.

  21. Mauro
    Posted 11 December 2007 at 12:37 am | Permalink

    Hi, i just wonder, how could i change the Inverted number interfase on your plug-in… i need that the first page shows the last post!! not inverted as you have it!

    Thanks! (You save me lot’s of coding with this wonderful plugin)!! XD

  22. Posted 11 December 2007 at 7:01 am | Permalink

    thanks for the hint!

  23. Posted 12 December 2007 at 12:55 am | Permalink

    Well that’s a pretty cool plug in, nice to see it in practice on your website :)

  24. Posted 13 December 2007 at 5:56 pm | Permalink

    Interesting article!
    Thanks

  25. Posted 14 December 2007 at 3:33 am | Permalink

    I’ve tried everything I know (which admittedly isn’t everything) trying to get paged comments to work on my guestbook page at tripawds.com/guestbook but the closest I came was a fatal error. I installed the paged comments plugin long after installing the guestbook. Is this an issue? Any help is appreciated. Thanks!

  26. Posted 16 December 2007 at 9:21 am | Permalink

    Gracias! cool!

  27. Posted 16 December 2007 at 9:01 pm | Permalink

    Hi Keyvan,

    I love your plugin and it is an integral/crucial part of my site. I am using it as a “guestbook” of sorts for people sending my twins prayers for a cure to their horrible disease.

    Is it possible to create multiple instances of the paged comments that share all of the config information but not the same page template?

    Since my guestbook is configured to change the word “comments” to the word “wishes” (in the paged-comments template) when I turn on paged-comments features on other pages the same word changes apply.

    I tried to create a “new” template with the “original comment language” and I could not figure out how to make it work.

    Before I spend a great deal more time trying to engineer a solution, I was hoping you might steer me in the right direction (or tell me that it is impossible/difficult)…

    Seems like this should be pretty simple and someone has probably done this before…

    Thanks a million in advance!

    Hugh

  28. Posted 18 December 2007 at 1:23 am | Permalink

    Hi Keyvian, my Webmaster Tools is telling me that I have a lot of pages with the same title, I was investigating and they are talking about the different pages of the comments that shows the same title. (“Post Title | Blog Title)
    Is there a way to include a line in the header to show “Post Title – Page 3 | Blog Title”.
    I use the format “else if…..” in the title tag…
    Thanks. Great Plugin!!!

  29. Posted 24 December 2007 at 3:23 pm | Permalink

    Thanks ,its working. Compatible with 2.3

  30. Posted 28 December 2007 at 3:47 am | Permalink

    广州注册香港公司一条龙后续服务
    服务内容:公司注册证书;商业登记证;公司章程;股票本;钢印、签字章、小圆章、椭圆章;董事会议记录本;申请资料影印件1套;空白收据;绿盒一个,附送香港电话、传真、联系地址
    广州市日聪企业管理顾问有限公司(日聪登尼特集团成员)
    经营范围:香港公司注册、BVI、萨摩亚、英美公司注册,注册广州公司,商标注册、投资移民、商务配套,代理记账,年审年报等等

  31. Posted 1 January 2008 at 9:54 pm | Permalink

    Thanks for that great plugin! It’s exactly what I need.

    But I have a little problem: Descending order does not work — neither when set in the *-config.php nor with custom keys.

  32. Posted 5 January 2008 at 9:45 am | Permalink

    the plugin is great! thx
    Manele

  33. Posted 5 January 2008 at 10:10 am | Permalink

    I have just installed this plugins in my site but it doesn’t work. Does it work on WP 2.2.2?

  34. Posted 5 January 2008 at 10:13 am | Permalink

    I use itheme 3 column ^^

  35. Posted 7 January 2008 at 9:57 pm | Permalink

    Simple but great. Good work.

  36. Posted 8 January 2008 at 12:22 am | Permalink

    dsdsd

  37. Posted 9 January 2008 at 8:15 am | Permalink

    it´s great, really. Regards.

  38. Supa
    Posted 24 January 2008 at 1:03 am | Permalink

    Hi Keyvan, while your plugin worked perfectly. Sadly it conflicted with other wordpress plugins and as a result made chitika.com’s related products unit and rmarsh.com’s similar posts plugins disappear completely in Firefox 2 and Internet Explorer 7! :(

    That might be something to look into.

  39. Posted 28 January 2008 at 10:57 am | Permalink

    Is it possible to config this script so that the actual post itself does not appear on the comment pages?

  40. Posted 3 February 2008 at 3:53 am | Permalink

    Thanks! Greate plagin!

  41. sunkoliu
    Posted 3 February 2008 at 2:57 pm | Permalink

    Blood Elf–Blackwing Lair–Gold
    http://www.buywowgold.org.cn
    Deliver 1-3 hours Service on 24/7 Buy and Pay 1 minute

  42. Posted 4 February 2008 at 4:20 pm | Permalink

    i just wonder, how could i change the Inverted number interfase on your plug-in… i need that the first page shows the last post!! not inverted as you have it!

  43. Posted 5 February 2008 at 3:05 am | Permalink

    I like this plugin, and I will place it on my blog.

  44. Posted 7 February 2008 at 12:29 pm | Permalink

    wellcome to my site! http://vnitweb.com/?page_id=8

  45. Posted 8 February 2008 at 6:19 am | Permalink

    Thanks for the input, appreciated!

    If it’s possible to make the function available to calculate comment paging soon enough to issue an error code before headers have been sent, would it also be possible to make a function available that would detect incorrect post paging soon enough to issue an error code?

  46. Posted 8 February 2008 at 2:22 pm | Permalink

    How to uninstall it?

  47. Posted 16 February 2008 at 9:41 pm | Permalink

    thanks

  48. Posted 19 February 2008 at 12:25 am | Permalink

    Thanks

  49. Posted 19 February 2008 at 4:28 am | Permalink

    thanks WP Plugin

  50. Posted 20 February 2008 at 1:57 am | Permalink

    It’s very good article. Great site with very good look and perfect information.

281 Trackbacks