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: « 7622 21 20 19 18 [17] 16 15 14 13 121 » Show All

  • 170
    Frank

    Hallo Keyvan,
    i have write a guestbook plugin for wordpress. Many people search for a function for paged comment in this guestbook. I have use your plugin and write a new guestbook with your nice plugin.
    I hope you enjoy this and thank you very much for you open code.
    WP-Guestbook
    With best regards Frank.

  • 169
    Shawna

    Silly me, I had .php at the end of the file twice *embarassed*

  • 168
    Keyvan

    Thanks for reporting back Shawna. :) I was actually just about to post asking if you’d renamed the file (I think this step is very easy to overlook). Glad it’s finally working for you. Let me know if you come across any other problems.

  • 167
    Shawna

    Sorry Keyvan, I actually had my file named incorrectly and that is why the changes were not taking place.Your instructions below worked perfectly and I thank you :D

  • 166
    Shawna

    Greetings Keyva, thank you for answering my question so quickly :)

    On line 92 I changed DESC to ASC and on line 102 I changed auto to first, but with no luck.It still shows the last posts first.

    :)

  • 165
    Keyvan

    Shawna, you can edit the config file (paged-comments-config.php) and either set ordering to ascending (’ASC’) or keep it as descending but change default_page to ‘first’. Hope that helps. Please post back if you have no luck.

  • 164
    Shawna

    Hola :)

    I have a ?

    How to I edit this so that the comments start showing from the first page rather than the last page?

    Thank you :)

  • 163
    Pinoy WordPress » Blog Archive » Kutitots is not her name, it is her domain - Interview with Gail Dela Cruz

    [...] Gail: For my own use (personal or business), I really like Keyvan Minoukadeh’s Paged Comments plugin and Ryan Duff’s Contact Form plugin. The Paged Comments plugin makes pages with a lot of comments look organized. I frankly don’t like skimming through pages that are too long (That’s one of the main reasons why I put The_Excerpt tag on my themes’ home page loop instead of The_Content). The Contact Form… I can’t say that I CAN’T live without it, but it’s mighty useful when I’m feeling lazy and don’t want to make my own contact form for a site I’m doing that’s running on WordPress. [...]

  • 162
    Keyvan

    Phillip, I’ll have to test those two options again. The other solution was: “If your theme has a separate template file for pages (the default theme has single.php and page.php) you can edit single.php and remove the call to paged_comments_template() (to return it to the state it was in prior to step 5). This will remove paging from all posts and will bypass the Paged Comments plugin completely.”

    Some themes provide separate template files for pages and posts. If yours does you can prevent comment paging on posts by editing the appropriate template (usually single.php) and removing the call to paged_comments_template() - it should only contain a call to comments_template().

    Of course I’ll have a look to see why the options aren’t working. Will post back when I’ve had a chance to test.

  • 161
    星月轮转 / Paged Threaded Comments plugin

    [...] This plugin is a combination of Brian’s Threaded Comments and Keyvan’s WordPress Paged Comments Plugin. Trustin Lee has written an plugin Threaded and Paged Comments Plugin for WordPress 1.5, but the structure is complicated. I borrowed the SQL statements and functions of it, and made the two plugins work together. Now the structure is tidier, since the plugin files are put into one directory, except the comments-paged.php file. [...]

Pages: « 7622 21 20 19 18 [17] 16 15 14 13 121 » Show All

Leave a Reply