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

39 Comments

  1. Alexander says:

    Thanks for this plugin

  2. 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

  3. Hoboken411 says:

    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:

  4. eyn says:

    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.

  5. eyn says:

    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. 😉

  6. Keyvan says:

    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 the paged_comments_template() each time the template is loaded. Did you have problems running version 2.5 without manually editing your template file?

  7. Jermaine says:

    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.

  8. Kyle Healey says:

    Thank you very much for sharing.

  9. […] 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://keyvan.net/code/paged-comments/), ki bo posredovane komentarje razbil na ve? strani. […]

  10. Hoboken411 says:

    Yeah sorry about that.. I used blockquote and it didn’t work.

    I’ll dig back into the code to see what I changed. Can you believe I forgot already?

  11. Keyvan says:

    Hobaken: Sorry, I don’t know why WordPress is stripping the code. If it’s not too much trouble, please email me what you changed and I’ll have a look.

  12. Joseph Crawford says:

    Using this plugin wrecks the ability to use the comments_rss_link() function to show a link for the comments RSS feed.

    I am going to try to find the issue in mine tomorrow but it would be nice if this were fixed in future version so that it did not try to page the RSS feed.

  13. Keyvan says:

    Thanks Joseph, will look into it when I get the chance.

  14. […] Paged Comments – I hate long lists of comments,but maybe there’s a better plugin that could do the job better […]

  15. […] ???????Paged comments??????????????????wordpress?????????????????????????????????????????????????????????????wordpress??????????????Paged comments????????????????????????plugin? […]

  16. Rick says:

    Hi, I am getting exactly the same symptoms as Florian in comment 61

    Hello Keyvan,
    sorry but the plugin is not working for me. I always get the message: “Sorry but comments are closed…” when I activate it, but that’s not true. I activated all comment options but it won’t work.

    which he had fixed by comment 62 but didn’t say how. Do you have any idea what is wrong?

  17. […] I was forced to tend to this blog because the amount of comments on one of my post’s has become really large, well large enough to make the page take a while to load, so I added this very nifty WP plugin called Paged Comments. I highly suggest this, very very handy. […]

  18. Saskboy says:

    Hi Keyvan,
    Thanks for the plugin. Happy New Year too.

    I have a small problem that may be easy to fix, and a request:

    The problem:
    Each of my post’s footers shows that Comments and Pings are closed, when they are not. I think this appeared after I activated the Paged Comments, but didn’t notice it for a month until someone asked me why Trackbacks were closed when I hadn’t set them to be closed.

    The request:

    It would be really nice if the comment order was set to descend by default when it flips to the paged mode. I seem to recall reading that comment permalinks would break in some way if it’s changed to display that way, but I’m sure you’ll think of a way at some point to change it without breaking anything.

  19. Daniel says:

    Hi Keyvan, very good plugin 🙂

    I have a little problem when working in K2 with timesince plugin activated. This one only return a text with the time past since the post was posted (using the post time and the actual time). Well, when Paged Comments activated, timesince works wrong. I can’t figure out why, but the text returned all time is less than 1 day (seems like the timesince function cut part of the date-time information, or something like that). The more strange is that the wrong date is the post date, not the comments date…

    Any idea about it?

  20. Luxgurl says:

    Hello there,
    This plugin im looking for soo long, glad i found it now 🙂
    BUT i have a little problem, when i click show all – it will not show all the comments but it go back to the main page 🙁 anybody can help me, please!

  21. Luxgurl says:

    Hello, it’s me again.
    Please find here the link to the page which gives me errors. Any help is highly appreciated.
    http://lollipop.lu/2007/01/05/down-ang-site-ko-kahapon/#comments

  22. Keyvan says:

    Thanks for the comments everyone, will try and reply to more tonight.

    Luxgurl: Please try editing paged-comments-config.php and setting the fancy_url option to true.

    Daniel: I’ll try the timesince plugin and see if I can reproduce the problem.

    Rick, Saskboy: I’ll look into the comments closed issue. (If anyone else is experiencing this, please let me know.)

  23. Keyvan says:

    Bug fix: Anyone using version 2.5 of the plugin, please replace your paged-comments.php file with the updated one. You will not have to edit/replace your config file.

    Daniel, Rick, Saskboy: The update above should fix your problems. If not, let me know.

  24. Luxgurl says:

    Hi Keyvan,
    Thanks for the reply.
    I edit paged-comments-config.php and setting the fancy_url option to true.. when i click the show all,
    it says all comments not found in the server 🙁

    Heres the page which gives me errors http://lollipop.lu/2007/01/05/down-ang-site-ko-kahapon/#comments

    Please help!!!

  25. Luxgurl says:

    Hi Keyvan,
    Yay! got it.. i works now! wahoo.. 🙂
    Thanks a lot and more power to ya!

    Luxembourg Europe!

  26. Keyvan says:

    Good to hear, Luxgurl! 🙂

  27. This plugin was my solution to include comments to a page to use them as a guestbook. It works very fine… thanks for this helpful piece of code!

  28. […] A mondjad fül kicsit kezdett elúszni a rengeteg kommentben, emiatt feltettem a címbeli plugint. Eddig jól m?ködik és tetszik. A beállítás se bonyolult, szép, jól dokumentált konfig fájlban kell a nekünk szimpatikus dolgokat kiválasztani. […]

  29. Rick says:

    No, it still seems to deactivate comments and trackbacks.

    I just replaced paged-comments.php by the new one and changed nothing else. Correct?

  30. Saskboy says:

    Thanks very much Keyvan. The update fixed the problem with Trackbacks and Comments claimed as closed. When I get some money into my PayPal account from a sale of something, I plan to send a couple dollars your way.

    Now, about ordering the posts the other direction…? 😉
    Is it just undesirable because some kind of permalink is broken, or are there other implications?

  31. Saskboy says:

    Rick, I downloaded just the .php file and it was the same old one I think, but the linked zip at the top of this page did the trick when I deactivated, updated the .php file, and reactivated the plugin.

  32. Rick says:

    Thanks Saskboy – I will try that.

  33. Keyvan says:

    Rick: Sorry, Saskboy is right—I stupidly linked to the previous version of the file in my comment. I’ve updated the link in my comment now, and the zip file at the top contains the latest version of the file.

    Saskboy: You should be able to order the posts anyway you like by editing the config. By default the ordering is set to descend. You can have either ascending mode or descending mode without affecting the comment permalinks. The only way permalinks will be affected is if you also enable fill_last_page. Am I missing something?

  34. Rick says:

    Great stuff – working perfectly now. Thanks a lot.

  35. Saskboy says:

    Keyvan, sorry I misunderstood this:
    “Note: ordering is implemented this way so new comments don’t
    // displace older comments on a page.”

    Switching to ASC now…, and everything is peachy.

    Thanks again.

  36. […] Blog technical note: I reordered the comments on very long posts, so the new stuff is at the bottom where most people expect it on blogs. Keyvan recently wrote a fix for his Paged Comments Word Press plugin. He’s awesome, and if I had money in my PayPal account right now, he’d be getting a tip today. […]

  37. Daniel says:

    Hi again Keyvan.

    My problem (with k2-timesince plugin) is now fixed with the last version (2007-01-11). Thanks a lot 😉

  38. Ciao, I use this template http://www.jide.fr and when activate the plugin, lost the gravatar immages.

    Can help me?

  39. Peter says:

    I have the plugin installed and yesterday when I tested it on my own I had the comments in descending order but today when the 2nd comment came in it woud up in ascending order?
    Here is line 40 from my paged-comments-config.php
    >$paged_comments->ordering = ‘DESC’; which is in the Plugins folder.
    Any info would be greatly apperciated….
    Thank you most humbly..

  40. Peter says:

    Sorry bro with a little more investigation and about a few lines down the page I found where you have it Ascending order until the first page is filled and than it goes to Descending order. Great Plugin. I really appreciate it.
    Pete

  41. Anja says:

    When I use your new plugin Version (Jan2007) I can’t see my post preview in the wordpress admin area, it only says in that window: “no post for your search criteria” or sth. like that…I deactivated all my plugins and reactivated them bit by bit, but unfortunately it was your plugin that made the trouble with the preview. I now activated the old plugin version (Feb2006) and everything is fine. Too sad. Any idea?

  42. Anja says:

    Sorry, forgot to say: I’m using WP 2.0.7.

  43. […] 01. Ad Rotator 02. Adhesive 03. Adsense deluxe 04. Akismet 05. Audio Player 06. Auto Hyperlink URL’s 07. Auto Social Poster 08. Autometa 09. Backup Restore 10. Boakes Most Wanted 11. Bunny’s Technorati Tags 12. Chitika eMiniMall Plugin 13. Clean Archives Reloaded 14. Code Auto Escape 15. del.icio.us – Bookmark This! 16. del.icio.us – Widget 17. Democracy 18. Digg This 19. Do Follow 20. Dragon Design Sitemap Generator 21. Drop Down Categories 22. Duh Gallery 23. Evermore 24. Exec PHP 25. Extract Terms 26. Feedburner Feed Replacement 27. FeedWordPress 28. Frame Buster 29. Fuzzy Recent Comments 30. Get Recent Comments 31. Google Sitemaps 32. Hello Dolly 33. Image Browser 34. Image Manager 35. KG Archives 36. Lazy Gallery 37. Less 38. Live Comment Preview 39. More Evermore 40. MoreMoney (AKA Buhonejo) 41. Next to Last 42. Paged Comments 43. Plugins Used Plugin 44. Random Excerpt 45. Recent Comments 46. Related Entries 47. Related Entries for Feeds 48. Related Posts 49. Related Searches 50. Related Tags 51. RumWall 52. Search History 53. Sidebar Widgets 54. Smart Archives 55. Sociable 56. Spam Karma 2 57. SRG Clean Archives 58. Submit It Plugin 59. Subscribe to Comments 60. Subcribe2 61. Terms2posts 62. Terms2search 63. Terms2tags 64. Text Link Ads v2.0 65. Textile 1 66. Time Capsule 67. Translator 68. Ultimate Tag Warrior 69. Ultimate Tag Warrior: Legacy 70. Ultimate Tag Warrior: Tag Archive 71. Useronline 72. Videopop 73. WordPress Database Backup 74. WordPress Mobile Edition 75. WP Admin Bar 2 76. WP Amazon 77. WP Cache 78. WP Contact Form 79. WP Cron 80. WP Cron Dashboard 81. WP Cron Future Pings 82. WP Cron Gravatar Cache 83. WP Cron Cron Mail 84. WP Cron Moderation 85. WP Cron Update Links 86. WP Print 87. WP ShortStat 88. Zap New Window […]

  44. Sorry, but with this plugin don’t work another like WP-Print http://www.lesterchan.net/portfolio/programming.php and the gravatar immages.
    😉

  45. Ajay says:

    Hi Keyvan,

    Does this play well with WordPress 2.1?

  46. […] Paged Comments Plugin by Keyvan Minoukadeh. I already mentioned about the Paged Comments Plugin and fixed the problem. […]

  47. Axel Wagner says:

    Hello,

    will this plugin also be available for the following two themes?

    – “Almost Spring” (http://www.pixeltunes.de/weblog/138/)
    – “Red Train” (http://www.perun.net/2005/03/19/red-train/)

  48. […] ?????????????????????????????????Paged Comments???????????????????????????????????????????post?????page?????????? […]

11 Trackbacks

  1. […] Keyvan WordPress Paged Comments Plugin ????: http://keyvan.net/code/paged-comments/ […]

  2. By WordPress - vse kar imajo veliki - Nasvet.com on 20 December 2006 at 10:25 am

    […] 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://keyvan.net/code/paged-comments/), ki bo posredovane komentarje razbil na ve? strani. […]

  3. By Are You Using Safe Wordpress Plugins ? on 23 December 2006 at 3:27 pm

    […] Paged Comments […]

  4. […] Paged Comments – I hate long lists of comments,but maybe there’s a better plugin that could do the job better […]

  5. By WP-Cache–??? on 3 January 2007 at 11:57 am

    […] ???????Paged comments??????????????????wordpress?????????????????????????????????????????????????????????????wordpress??????????????Paged comments????????????????????????plugin? […]

  6. By Steven Hargrove: Catching up on 4 January 2007 at 5:55 pm

    […] I was forced to tend to this blog because the amount of comments on one of my post’s has become really large, well large enough to make the page take a while to load, so I added this very nifty WP plugin called Paged Comments. I highly suggest this, very very handy. […]

  7. By kobak pont org » paged comments plugin on 15 January 2007 at 11:26 pm

    […] A mondjad fül kicsit kezdett elúszni a rengeteg kommentben, emiatt feltettem a címbeli plugint. Eddig jól m?ködik és tetszik. A beállítás se bonyolult, szép, jól dokumentált konfig fájlban kell a nekünk szimpatikus dolgokat kiválasztani. […]

  8. […] Blog technical note: I reordered the comments on very long posts, so the new stuff is at the bottom where most people expect it on blogs. Keyvan recently wrote a fix for his Paged Comments Word Press plugin. He’s awesome, and if I had money in my PayPal account right now, he’d be getting a tip today. […]

  9. […] 01. Ad Rotator 02. Adhesive 03. Adsense deluxe 04. Akismet 05. Audio Player 06. Auto Hyperlink URL’s 07. Auto Social Poster 08. Autometa 09. Backup Restore 10. Boakes Most Wanted 11. Bunny’s Technorati Tags 12. Chitika eMiniMall Plugin 13. Clean Archives Reloaded 14. Code Auto Escape 15. del.icio.us – Bookmark This! 16. del.icio.us – Widget 17. Democracy 18. Digg This 19. Do Follow 20. Dragon Design Sitemap Generator 21. Drop Down Categories 22. Duh Gallery 23. Evermore 24. Exec PHP 25. Extract Terms 26. Feedburner Feed Replacement 27. FeedWordPress 28. Frame Buster 29. Fuzzy Recent Comments 30. Get Recent Comments 31. Google Sitemaps 32. Hello Dolly 33. Image Browser 34. Image Manager 35. KG Archives 36. Lazy Gallery 37. Less 38. Live Comment Preview 39. More Evermore 40. MoreMoney (AKA Buhonejo) 41. Next to Last 42. Paged Comments 43. Plugins Used Plugin 44. Random Excerpt 45. Recent Comments 46. Related Entries 47. Related Entries for Feeds 48. Related Posts 49. Related Searches 50. Related Tags 51. RumWall 52. Search History 53. Sidebar Widgets 54. Smart Archives 55. Sociable 56. Spam Karma 2 57. SRG Clean Archives 58. Submit It Plugin 59. Subscribe to Comments 60. Subcribe2 61. Terms2posts 62. Terms2search 63. Terms2tags 64. Text Link Ads v2.0 65. Textile 1 66. Time Capsule 67. Translator 68. Ultimate Tag Warrior 69. Ultimate Tag Warrior: Legacy 70. Ultimate Tag Warrior: Tag Archive 71. Useronline 72. Videopop 73. WordPress Database Backup 74. WordPress Mobile Edition 75. WP Admin Bar 2 76. WP Amazon 77. WP Cache 78. WP Contact Form 79. WP Cron 80. WP Cron Dashboard 81. WP Cron Future Pings 82. WP Cron Gravatar Cache 83. WP Cron Cron Mail 84. WP Cron Moderation 85. WP Cron Update Links 86. WP Print 87. WP ShortStat 88. Zap New Window […]

  10. […] Paged Comments Plugin by Keyvan Minoukadeh. I already mentioned about the Paged Comments Plugin and fixed the problem. […]

  11. By ?????? » [WP] ?????? on 30 January 2007 at 4:44 am

    […] ?????????????????????????????????Paged Comments???????????????????????????????????????????post?????page?????????? […]