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

28 Comments

  1. redivide says:

    Nice plugin, and I’m gonna use it. Seems to be the best one out there…
    Thanks!

  2. […] Paged Comments […]

  3. […] b.) ???? Plugins????????? plugins? WordPress Database Backup 1.7 TinyMCE Advanced 2.1 Paged Comments 2.5 Reversed Order Comments 1.0 ???????? TinyMCE Advanced 2.1?wordpress admin ? WYSIWYG editor???????????????TinyMCE Advanced???????????? […]

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

  5. […] Paged Comments This plugin is useful if you get a lot of comments on your blog. It breaks your comments into a number of pages. Imagine if your blog gets over a thousand of comments? You definitely need this plugin. […]

  6. g t says:

    anyone has tested this plugin with the upcoming wordpress 2.5? TIA

  7. g t says:

    Works fine on wordpress 2.5

  8. lisa says:

    Thanks for your plugin, it works great!

  9. lisa says:

    Hi Keyvan!

    Just wanted to say THANKS so much for your plugin, it works great! I had over 800 comments on my blog today and needed to do something fast — and your plugin was it!

    I had to make one minor change to get comments that are awaiting moderation to show up in WPMU in wp-content/plugins/paged-comments/paged-comments.php —

    diff paged-comments.php.orig paged-comments.php
    172c172,174
    if ( $user_ID ) {
    > $approved_condition = “(comment_approved = ‘1’ OR ( user_id = ‘$user_ID’ AND comment_approved = ‘0’ ))”;
    > } else if (empty($comment_author)) {
    742c744

    Thanks again,
    Lisa

  10. Don says:

    Hi, I tried to use this plugin on a WordPress Mu instalation. and it’s not working… are there any ways to fix this ?

  11. Vladimir says:

    Installed on 2.5 but fancy_url does not work. All links end up on default page.

  12. […] Paged Comments – When posts easily get 300 comments the pages can have a tendency to get long. We limit things down to 50 per page. […]

  13. […] (1)KEYVAN???????Version 2.6.4 (2007-07-31) (zip file) ???????????? ?paged-comments????? paged-comments-config-sample.php???? paged-comments.php???? languages??? themes??? readme.txt ?5??????????? […]

  14. tom says:

    i installed this plugin but i want to display the comment’s order number on the top-right, similar to yours. plz help me to do that.

  15. Gene says:

    Hi Keyvan,

    Nice concept but would need a little “fine tuning”. I have a 3-column theme and even though I transfered comment-paged.php (default and tried all of the others), the layout isn’t good, the text is way too close to my sidebars.

    Wouldn’t it be a good idea to implement a CSS to this template so the user may adjust margins, padding, etc.?

    Thanks,
    Gene

  16. Gene says:

    OK, disregard my other comment, I modified my existing comment.php to include the code in the SVN and my layout is now fantastic.

    Tell me something though, is: <a href=”” title=””> necessary? All it does is turn my boxed comment header into a link…

    Thanks,
    Gene

  17. Louis says:

    Hi Keyvan,, I’m trying out the plugin right now on my web site. It works fine but I’ve ran into a problem. I’ve searched here and on the web for a solution but I have not found one.

    My problem is with linking to comments. I have links in some posts which are in the form <a href=”#comment-1234″ rel=”nofollow”>. Now they no longer work because the URL for the page the user is currently watching gets prepended. So if the comment is really on page 10 but the user is watching page 11, then the href above turns into a URL of the form …/comments-page-11/#comment-1234

    What is the solution? Am I to use a special syntax to link to comments? Have I hit onto a real problem?

    Thanks,
    Louis

  18. […] comentarii si ceva probleme 20 Aprilie 2008 13:44 Paged Comments e fara doar si poate un plugin util cand ai posturi cu sute sau mii de comentarii – scurteaza mult […]

  19. […] ?? ????????????? ???????????? ??paged comments? ?????????? ????? Q? […]

  20. KAVEH says:

    “Vladimir
    April 2nd, 2008 at 12:23 am

    Installed on 2.5 but fancy_url does not work. All links end up on default page.”

    >>> I have This probleam…

  21. Rick says:

    Hi – I have been using this for a while and it is great. I have just upgraded to WP 2.5 and have spotted a small problem. On a test blog using the WP Default theme, activating the paged-comments plugin disables the new built in support for Gravatars.

    I have just realised while writing this that the reason is that the theme specific entry in the themes directory is out of date wrt WP 2.5 so at least I now know how to fix it 🙂 Looking at it, there are quite a number of details in there that need bringing up to date with the current version of the theme.

  22. […] Paged Comments – ???? ????? ????????? ?? ?????? ?????? ??? ??? ????? ???? ?? ?? ???? ???? ?????? ??? ????? ?????? ????? ??? ??????. […]

  23. Edi says:

    Thanks for your plugin!

    I recognized a problem: Paged Comments (Version 2.6.4) does not work, if WordPress is installed in a subdirectory (example.com/wordpress) and called from homedirectory (example.com). The links to the individual pages are wrong then.

    How can i fix this Problem, without changing the directory?

  24. […] se ?te 1000 komentá?? pod sebou), nainstalujeme si rozší?ení WordPressu nazvaný “Paged Comments” (stránkování komentá??). Jednoduše plugin zaktivujeme a nastavíme požadované volby […]

  25. […] Este problema esta bien conocido por los utilizadores de WordPress, el remedio consiste en paginar los comentario para evitar de cagarlos todos de un golpe, entonce un blogger tuvo la idea de resolver este problema creando un script para nuestro querido CMS, este plugin se llama Paged Comments. […]

  26. Robert says:

    Hello Keyvan,

    if you look at the guestbook of my page you will see that the comments are ordered with the latest being on top, but unfortunately the numbering starts all over again on each new page. How can I modify the files so that the latest comment in the guestbook will have number 20, for example, instead of number 1? Have been trying to figure this out for quite some time now, but I didn’t know how to do it. I already copied the default comments-paged.php to my theme’s folder (I’m using a modified “beachtheme”) but still the numbering starts all over again on each page…Do you have any ideas/instructions? Would be greatly appreciated 🙂

    Regards

    Robert

  27. Robert says:

    Oh, my bad, didn’t paste the website URL into the comment text 🙂 so, here it is for you to check out what’s actually going on there: http://www.FSR-ARCTeam.de

    Thanks!

  28. […] good way to keep your comments tidy when you have a tremendous long list of comments. Check it out there  and click Show All at the comment section. You will know what I mean. I have seen a lot of blogs, […]

  29. […] 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 […]

  30. […] Paged Comments by keyvan (to be used for guestbook). Use this output settings: […]

  31. […] WordPress Paged Comments Si tus visitantes son de los que les gusta comentar, este plugin te vendrá bien, porque te permite paginar los comentarios echos a cada entrada. […]

  32. […] ?????? ?????????? ???????? ?? paged comments ??????????????????????? […]

  33. […] (click to see the screenshot) Yup, finally, it’s separated. It even support the famous Paged Comments, of course, with a little hacked. Please download the plugin from MangoOrange instead. I have sent […]

  34. […] needed if your comment number ever goes above ten, or in case you expect it to do that soon, is the Paged Comments Plugin. This automatically reverses the comments too, but you can undo that process, if you prefer. The […]

  35. […] Paged Comments ??????????????????????????????????Apple Theme ??????????????????? […]

  36. Stephen R says:

    Hi —

    I made a comments-paged.php that works with the Sandbox theme. Thanks for the plugin. 🙂

    http://striderweb.com/nerdaphernalia/2008/07/paged-comments-for-wordpress-sandbox-theme/

  37. Keyvan says:

    Thank you all for commenting, I’ve been so busy that I haven’t had time to respond. I’ve just released a new version with the following changes:

    • Posting a new comment will now redirect you to the comment page holding the new comment
    • The default paged comment template (comments-paged.php) has been updated to reflect the comments template used in WordPress 2.5.1 (comments.php)
    • Templates added for the Sandbox theme (thanks Stephen) and i3Theme (thanks Mickey)
    • New language files for Italian (thanks Geremia) and Spanish (thanks Alejandro)
    • Updated licence to GPLv3
    • Added a fix for WPMU (thanks Lisa)

    Let me know if you come across any problems. If you’d already posted about a problem that I haven’t addressed in this release, please remind me again. I hope to have another release out soon.

  38. Stephen R says:

    I’ve come across a bug.

    Let’s say I have 5 pages of comments on a post. On the “top” page, each comment has a permalink. When enough comments are added that comments page 6 is added, the comments on page 5 now have a _different_ permalink.

    This is broken. Permalinks must not change, ever. By definition. So, comments on the top page must have the /comment-page-x/ added to the URL.

    (The comment-page-x URL _works_ even for comments on the top page, it’s just not the link presented.
    …unless I did something wrong in the Sandbox comments-paged/php ?

  39. Keyvan says:

    Stephen: I think you missed out a call to paged_comments_url() in the Sandbox template. I’ve added it to trunk, you can view the difference. Let me know if that solves it.

  40. Keyvan says:

    2.7.1 fixes the issue where incorrect permalinks were displayed on the ‘show all’ page.

  41. Joseph says:

    I don’t know much about PHP but I’ve installed your plugin and all is working great with it. The only thing I want to do is remove the numbers that are displayed below the avatars as this was only added after adding your plugin.

  42. Tom Riddle says:

    I set “fancy_url = false” and get 404 error when submitting comments.

    I think the bug is in function “paged_comments_post_redirect_location”

  43. Tom Riddle says:

    I have fix it Keyvan. Just replace “&” -> “?” .

  44. […] volver farragosos y largos de cargar si tienen muchos comentarios. Buscando por ahí encontré este plugin (paged-comments) que soluciona ese problema. La instalación es […]

  45. […] (1)KEYVAN???????Version 2.6.4 (2007-07-31) (zip file) ???????????? ?paged-comments????? paged-comments-config-sample.php???? paged-comments.php???? languages??? themes??? readme.txt ?5??????????? […]

  46. Tom Riddle says:

    I want to display the search field like your comments section. Which plugin have you used for ?

  47. Jamie says:

    I downloaded the upgrade… and now I don’t see the plugin listed under my plugins? However, paged comments are there and appear to be working. Where did the file go? Hmmm

  48. TonyN says:

    Keyvan,

    I’m using Paged_Comments 2.7.1 with WordPress 2.3 and the theme Tiga-06

    I get this error with no comments loading:

    Call to undefined function: get_avatar() in

    [….]/blog/wp-content/plugins/paged-comments/themes/default/comments-paged.php on line 36

    I think that the problem may be that Tiga does not handle avatars. Is there a workaround for this as I do not want to change my theme.

    It’s a great plugin and I would very much like to use it. Many thanks for any help you can give.

  49. Keyvan says:

    Joseph: To remove the numbers displayed below the avatar, you’ll have to edit comments-paged.php and remove this line:

    
    <div class="comment-number"><?php echo $comment_number; $comment_number += $comment_delta;?></div>

    You can also hide the numbers by editing your stylesheet.

    Tom: Can you send me the URL of a page where you’ve had to replace ‘&’ -> ‘?’. As for the comment search box. It’s a plugin someone else developed that, as far as I know, is not being maintained any more. I’ll see if I can find a link.

    Jamie: Which version of WordPress are you using?

    TonyN: The default paged comments template has been updated for WordPress 2.5. You can download the previous template and place it in your Tiga-06 theme folder (found in wp-content/themes/). That should resolve the problem.

  50. […] Pagged comments es especialmente útil para blogs con muchos comentarios. […]

22 Trackbacks

  1. By ??WordPress?? - ????BLOG on 19 March 2008 at 2:42 am

    […] Paged Comments […]

  2. By BBF Studio » Wordpress on Mac OS X localhost on 20 March 2008 at 4:53 am

    […] b.) ???? Plugins????????? plugins? WordPress Database Backup 1.7 TinyMCE Advanced 2.1 Paged Comments 2.5 Reversed Order Comments 1.0 ???????? TinyMCE Advanced 2.1?wordpress admin ? WYSIWYG editor???????????????TinyMCE Advanced???????????? […]

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

  4. […] Paged Comments This plugin is useful if you get a lot of comments on your blog. It breaks your comments into a number of pages. Imagine if your blog gets over a thousand of comments? You definitely need this plugin. […]

  5. […] Paged Comments – When posts easily get 300 comments the pages can have a tendency to get long. We limit things down to 50 per page. […]

  6. By » Guestbook???: WordPress???2.5??????? on 12 April 2008 at 3:23 pm

    […] (1)KEYVAN???????Version 2.6.4 (2007-07-31) (zip file) ???????????? ?paged-comments????? paged-comments-config-sample.php???? paged-comments.php???? languages??? themes??? readme.txt ?5??????????? […]

  7. […] comentarii si ceva probleme 20 Aprilie 2008 13:44 Paged Comments e fara doar si poate un plugin util cand ai posturi cu sute sau mii de comentarii – scurteaza mult […]

  8. By Wordpress Thread Commnet FAQ : ???? on 24 April 2008 at 9:00 am

    […] ?? ????????????? ???????????? ??paged comments? ?????????? ????? Q? […]

  9. […] Paged Comments – ???? ????? ????????? ?? ?????? ?????? ??? ??? ????? ???? ?? ?? ???? ???? ?????? ??? ????? ?????? ????? ??? ??????. […]

  10. […] se ?te 1000 komentá?? pod sebou), nainstalujeme si rozší?ení WordPressu nazvaný “Paged Comments” (stránkování komentá??). Jednoduše plugin zaktivujeme a nastavíme požadované volby […]

  11. […] Este problema esta bien conocido por los utilizadores de WordPress, el remedio consiste en paginar los comentario para evitar de cagarlos todos de un golpe, entonce un blogger tuvo la idea de resolver este problema creando un script para nuestro querido CMS, este plugin se llama Paged Comments. […]

  12. […] good way to keep your comments tidy when you have a tremendous long list of comments. Check it out there  and click Show All at the comment section. You will know what I mean. I have seen a lot of blogs, […]

  13. […] 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 […]

  14. […] Paged Comments by keyvan (to be used for guestbook). Use this output settings: […]

  15. […] WordPress Paged Comments Si tus visitantes son de los que les gusta comentar, este plugin te vendrá bien, porque te permite paginar los comentarios echos a cada entrada. […]

  16. By Wordpress??DIY???php????????? : ???? on 4 June 2008 at 6:10 am

    […] ?????? ?????????? ???????? ?? paged comments ??????????????????????? […]

  17. […] (click to see the screenshot) Yup, finally, it’s separated. It even support the famous Paged Comments, of course, with a little hacked. Please download the plugin from MangoOrange instead. I have sent […]

  18. […] needed if your comment number ever goes above ten, or in case you expect it to do that soon, is the Paged Comments Plugin. This automatically reverses the comments too, but you can undo that process, if you prefer. The […]

  19. […] Paged Comments ??????????????????????????????????Apple Theme ??????????????????? […]

  20. […] volver farragosos y largos de cargar si tienen muchos comentarios. Buscando por ahí encontré este plugin (paged-comments) que soluciona ese problema. La instalación es […]

  21. […] (1)KEYVAN???????Version 2.6.4 (2007-07-31) (zip file) ???????????? ?paged-comments????? paged-comments-config-sample.php???? paged-comments.php???? languages??? themes??? readme.txt ?5??????????? […]

  22. […] Pagged comments es especialmente útil para blogs con muchos comentarios. […]