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

27 Comments

  1. Anyone had problems installing this plugin on wordpress 2.3 ? I get this: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … Thanks

  2. […] Upgrading WordPress By Tim This blog is now running on WordPress 2.3. The differences from 2.2 are minor from the user’s perspective, which strikes me as a sign of maturity: it was already very good. Unfortunately the team did not address my number one wish, which is paged comments – but I realise I am in a minority as the feature has only 8 votes at the time of writing. There is a plug-in, but it does not work well with the theme I use. I am not complaining though; WordPress is fantastic and I am a loyal user. I have started using it for longer articles as well as blog posts; it is effective as a simple content management system for this site. […]

  3. Anand says:

    I also have problems after upgrading to WordPress 2.3. I see one page with comments. But if I want to go to another page then nothing happens. It stays on the same page.

    Is there a fix or an update for this problem?

  4. Keyvan says:

    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.

  5. BuilderX says:

    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.

  6. […] Paged Comments ????? ?????? ?? ?? ????, Paged Comments ????? Digg Style Pagination Class? ?????. ?? ???? Digg Style Pagination? ??. […]

  7. Keyvan says:

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

  8. g t says:

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

  9. Mosey says:

    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 >_

  10. Mosey says:

    (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!

  11. Nicolas says:

    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

  12. JT says:

    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?

  13. Mathijs says:

    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.

  14. JT says:

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

  15. JT says:

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

  16. Neil says:

    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?

  17. Mark Barnes says:

    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.

  18. […] Number 2. Paged Comments – Have popular posts? Have lots of comments? Have stupidly long pages because of this? This plugin is for you, it allows you to have comment pagination to show less on a page at once. […]

  19. […] Paged Comments: ?????????? […]

  20. […] Her 10 yorumda bir sayfalama yaparak sayfalar?m?z?n uzay?p gitmesini engeller. Link […]

  21. […] Yeni ekledi?im temalardan sonra bir de bir eklenti türkçele?tireyimde tam olsun mant???yla aramalar?m sonucu herkesin tam anlam?yla i?ini görecek WordPress Paged Comments Plugin eklentisiyle kar??la?t?m.Bu eklenti sayesinde yorumlar nedeniyle uzay?p giden yaz?lar?m?zda yorumlar? sayfaland?rabiliyorsunuz.Çat pat ingilizce bildi?im için eksikliklerim olabilir gerekli eksiklikleri üstadlar?m?z giderirse sevinirim. Eklenti Ad? : WordPress Paged Comments Plugin ??levi : Her 10 yorumda bir sayfalama yaparak sayfalar?m?z?n uzay?p gitmesini engeller. Kaynak : WordPress Paged Comments Plugin […]

  22. […] ?WordPress Paged Comments Plugin???????WordPress??????????????????????????????????????? ?????2.6.2 (2007-05-04) ?????http://keyvan.net/code/paged-comments/ ???????? ??????WordPress 1.5 ? 2.x????? […]

  23. […] -Paged Comments, que agrupa los comentarios en páginas. Util para los posts con muchos comentarios, como éste. […]

  24. dam says:

    The fancy_url option don’t work on wp 2.3

    Any ideas?

  25. stephen says:

    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.

  26. stephen says:

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

  27. […] It’s been quite a while since I updated MangoOrange and I decided to do some internal upgrades on the WordPress as well as the plugins. In the midst of it, I found an awesome plugin, the one that I’ve been looking for, WordPress Paged Comments. […]

  28. […] Paged Comments It’s a good way to keep your comments tidy when you have a tremendous long list of comments. Check it out at the i3Theme and click Show All at the comment section. You will know what I mean. […]

  29. […] Paged Comments v1.6.4 : ??? ? ?? ?? ??? ?? ??? ?? ??? ??? ??? ?? ??? ?? ??? ? ??? ?? ???? ??. ? ????? ?? ?? ???? ??? ????? ?? ???? ??? ???, ?? ? ??? ? ???? ?????? ? ?? ??? ????? ? ? ? ??? ???? ??? ?? ??. […]

  30. julius says:

    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.

  31. Keyvan says:

    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.

  32. […] A recent upgrade of a project to WordPress 2.3.1 brought about a few other new upgrades. It’s one of those things where you figure, “while we’re in here we might as well fix up a few things.” So among the upgrades being made was the addition of the Paged Comments plugin on the blog. A small bit of styling and we were good to go with paging. No real issues to speak of until we tested the recent comments we were pulling into the sidebar on the site. […]

  33. rich says:

    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.

  34. […] Her 10 yorumda bir sayfalama yaparak sayfalar?m?z?n uzay?p gitmesini engeller. Link […]

  35. […] 0.9 Update: Added paged comments functionality. Requires the Paged Comments plugin. […]

  36. […] WordPress Paged Comments – allows comment paging. Useful for those very popular blog entries receiving many comments. […]

  37. Mauro says:

    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

  38. jennieC says:

    thanks for the hint!

  39. […] WordPress Paged Comments – allows comment paging. Useful for those very popular blog entries receiving many comments. […]

  40. […] Paged Comments.  When a post has lots of comments, every comment has to be queried from the database every time the page is loaded, regardless of whether the visitor comments. Breaking the comments down into several pages not only reduces this load, I think it’s nicer for the visitor. […]

  41. Well that’s a pretty cool plug in, nice to see it in practice on your website 🙂

  42. Interesting article!
    Thanks

  43. Jim says:

    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!

23 Trackbacks

  1. […] Upgrading WordPress By Tim This blog is now running on WordPress 2.3. The differences from 2.2 are minor from the user’s perspective, which strikes me as a sign of maturity: it was already very good. Unfortunately the team did not address my number one wish, which is paged comments – but I realise I am in a minority as the feature has only 8 votes at the time of writing. There is a plug-in, but it does not work well with the theme I use. I am not complaining though; WordPress is fantastic and I am a loyal user. I have started using it for longer articles as well as blog posts; it is effective as a simple content management system for this site. […]

  2. By ????? 2.3 ??? ???? « Proceedings on Casuality on 4 October 2007 at 9:23 am

    […] Paged Comments ????? ?????? ?? ?? ????, Paged Comments ????? Digg Style Pagination Class? ?????. ?? ???? Digg Style Pagination? ??. […]

  3. By WP??:Paged Comments-?????? | ????? on 9 October 2007 at 3:35 pm

    […] WP?????? | ???????? […]

  4. By wordpress plugins | on 14 October 2007 at 9:32 am

    […] Number 2. Paged Comments – Have popular posts? Have lots of comments? Have stupidly long pages because of this? This plugin is for you, it allows you to have comment pagination to show less on a page at once. […]

  5. By ????WordPress?? at Xu Yiyang on 15 October 2007 at 5:24 am

    […] Paged Comments: ?????????? […]

  6. […] Paged Comments http://keyvan.net/code/paged-comments/ Insere paginação aos seus comentários […]

  7. By Kapasite » Site ar?ivi » more on 23 October 2007 at 7:51 am

    […] Her 10 yorumda bir sayfalama yaparak sayfalar?m?z?n uzay?p gitmesini engeller. Link […]

  8. […] Yeni ekledi?im temalardan sonra bir de bir eklenti türkçele?tireyimde tam olsun mant???yla aramalar?m sonucu herkesin tam anlam?yla i?ini görecek WordPress Paged Comments Plugin eklentisiyle kar??la?t?m.Bu eklenti sayesinde yorumlar nedeniyle uzay?p giden yaz?lar?m?zda yorumlar? sayfaland?rabiliyorsunuz.Çat pat ingilizce bildi?im için eksikliklerim olabilir gerekli eksiklikleri üstadlar?m?z giderirse sevinirim. Eklenti Ad? : WordPress Paged Comments Plugin ??levi : Her 10 yorumda bir sayfalama yaparak sayfalar?m?z?n uzay?p gitmesini engeller. Kaynak : WordPress Paged Comments Plugin […]

  9. […] ?WordPress Paged Comments Plugin???????WordPress??????????????????????????????????????? ?????2.6.2 (2007-05-04) ?????http://keyvan.net/code/paged-comments/ ???????? ??????WordPress 1.5 ? 2.x????? […]

  10. By Actualizado a Wordpress 2.3.1 : EREBE on 3 November 2007 at 8:31 pm

    […] -Paged Comments, que agrupa los comentarios en páginas. Util para los posts con muchos comentarios, como éste. […]

  11. By ???WordPress?? - Palmback»??? on 9 November 2007 at 8:52 am

    […] Paged Comments […]

  12. By WordPress 2.3???? | Ge Xiaofei on 10 November 2007 at 9:08 am

    […] Paged Comments […]

  13. By ???? » ?????WordPress???????????? on 10 November 2007 at 10:46 am

    […] Paged Comments […]

  14. By Finally, the comments are paged… on 13 November 2007 at 5:02 pm

    […] It’s been quite a while since I updated MangoOrange and I decided to do some internal upgrades on the WordPress as well as the plugins. In the midst of it, I found an awesome plugin, the one that I’ve been looking for, WordPress Paged Comments. […]

  15. By Ultra Useful Wordpress Themes on 14 November 2007 at 5:33 pm

    […] Paged Comments […]

  16. […] Paged Comments It’s a good way to keep your comments tidy when you have a tremendous long list of comments. Check it out at the i3Theme and click Show All at the comment section. You will know what I mean. […]

  17. By ??? ?? ?? » Blog Archive » ?? ?? ????? on 25 November 2007 at 10:54 pm

    […] Paged Comments v1.6.4 : ??? ? ?? ?? ??? ?? ??? ?? ??? ??? ??? ?? ??? ?? ??? ? ??? ?? ???? ??. ? ????? ?? ?? ???? ??? ????? ?? ???? ??? ???, ?? ? ??? ? ???? ?????? ? ?? ??? ????? ? ? ? ??? ???? ??? ?? ??. […]

  18. […] A recent upgrade of a project to WordPress 2.3.1 brought about a few other new upgrades. It’s one of those things where you figure, “while we’re in here we might as well fix up a few things.” So among the upgrades being made was the addition of the Paged Comments plugin on the blog. A small bit of styling and we were good to go with paging. No real issues to speak of until we tested the recent comments we were pulling into the sidebar on the site. […]

  19. By 230 Wordpress eklentisi — Wordpress Türkiye on 9 December 2007 at 4:49 am

    […] Her 10 yorumda bir sayfalama yaparak sayfalar?m?z?n uzay?p gitmesini engeller. Link […]

  20. […] 0.9 Update: Added paged comments functionality. Requires the Paged Comments plugin. […]

  21. By 50 Best Wordpress Plugins for Power Blogging on 10 December 2007 at 5:27 pm

    […] WordPress Paged Comments – allows comment paging. Useful for those very popular blog entries receiving many comments. […]

  22. By 50 best Wordpress plugins - UK Small Business Forums on 11 December 2007 at 7:25 pm

    […] WordPress Paged Comments – allows comment paging. Useful for those very popular blog entries receiving many comments. […]

  23. By Mad, mad propz to DownTownHost on 11 December 2007 at 7:35 pm

    […] Paged Comments.  When a post has lots of comments, every comment has to be queried from the database every time the page is loaded, regardless of whether the visitor comments. Breaking the comments down into several pages not only reduces this load, I think it’s nicer for the visitor. […]