Keyvan Minoukadeh

WordPress Paged Comments Plugin

Filed under: General — Keyvan @ 12:24 am

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

Related Downloads

Installation (for Wordpress 2.3+)

If you’re upgrading from a previous version, skip these installation steps and read the upgrade steps.

  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

  • 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?

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

This month I’ve received £10 ($16/€12) :)

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

760 Responses to “WordPress Paged Comments Plugin”

Pages: « 76 75 74 73 [72] 71 70 69 68 67 661 » Show All

  • 720
    Keyvan

    skapiso: You can change the behaviour by setting fill_last_page to true in the config file. The reason it works the way it does is to prevent comments moving from page to page. It’s not very convenient for viewing comments, but does make it easier for people trying to link to a specific comment, or coming in from a search engine.

  • 719
    skapiso

    I note this is the same thing here. there is at the moment 8 comments even if you propably choose to display 10. is there any solution to resolve this little bug?

  • 718
    skapiso

    Hi keyvan, thank you for your plugin. It help me because i have a page with more than 350 comments and it’s impossible to display without a pagination script. I encounter a little problem. I have chose to display my comments with a DESC order. the script works well but if there is only 2 comments left at the end of the modulo, the first page of the pagination will contain only 2 comments, even if chosse to display 25 comments per page. Do you understand what I mean? Sorry for my english. I hope you could help me.

    thanks

  • 717
    Keyvan

    Dan: Thanks, I’m going to look into it and see if I can reproduce the problem using custom permalinks.

    Paris, Christina: Thanks for the information. I have to admit, I wasn’t aware you could set WordPress up in this way. Expect another release soon. :)

  • 716
    Christina

    I am having the same problem as Paris. Example: In this post when I click on page 3. It tries to take me here. That is not where my posts/blogs are located.

    I think what Paris meant by “subdirectory (example.com/wordpress) and homedirectory (example.com)” is
    wordpress address (example.com/wordpress) and blog address (example.com). I have wordpress in it’s own directory while my blog remains in my root directory (Read)

    Please let me know if a solution to this problem becomes available. Thanks!

  • 715
    ParisReply

    Yes Keyvan I’m testing it in a different way.
    I set My Blog Home address
    example.com
    My Wordpress address
    example.com/wordpress
    the page number will be shown but when I click It will display a wrong link (example.com/wordpress/?p=5&cp=1#comments) this link can’t work on my site. The right link should be (example.com/?p=5&cp=1#comments)

    when I set My Blog Home address
    example.com
    My Wordpress address
    example.com
    the page link can work very well but I can’t login in my wordpress and all the CSS disappear.

    when I set My Blog Home address
    example.com/wordpress
    My Wordpress address
    example.com/wordpress
    everything works perfect
    but I don’t wanna my site permalink containing a /wordpress/
    all I wanna do is set My Blog Home address
    example.com
    My Wordpress address
    example.com/wordpress

    however it can’t work well I don’t know why?
    (I’m from China I use WP2.6 English version and paged comments Version 2.7.1)Thank you!

  • 714
    Dan

    Keyvan, I was using the permalink format: %postname%-%post_id%

    What is weird is that this doesn’t effect the URL of pages, which is where I was having the problem.

    I haven’t got as far as sorting out comments on posts. I’ll let you know if I have any further issues with it.

  • 713
    Keyvan

    Paris: I’ve tested the plugin using WP installed in a subdirectory, try here. I’m not sure what you mean by ‘and called from homedirectory’ though, are you accessing it in a different way?

  • 712
    PARIS

    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?

  • 711
    Keyvan

    Tim: Thanks. I’m glad it worked okay for you.

    Dan: I’m glad it’s now working, but I’d be interested to know what custom format you were using that caused the plugin to fail.

Pages: « 76 75 74 73 [72] 71 70 69 68 67 661 » Show All

Leave a Reply