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: « 7637 36 35 34 33 [32] 31 30 29 28 271 » Show All

  • 320
    tracy

    I am trying to get your plugin to work for on my guestbook page. I have 106 comments there.

    I have activated the plugin, I have the 3 files where they need to be…
    Here are my settings in the config file
    $paged_comments->all_posts = true;
    $paged_comments->all_pages = true;
    $paged_comments->per_page = 10;
    $paged_comments->ordering = ‘DESC’;
    $paged_comments->fill_last_page = true;
    $paged_comments->page_range = 11;
    $paged_comments->fancy_url = false;
    $paged_comments->show_all_option = true;
    $paged_comments->show_all_ordering = ‘ASC’;
    $paged_comments->default_page = ‘last’;
    I also have a custome field made on that page key, paged-comments value, on.

    WHat the heck do I have wrong?
    Thanks for your help

  • 319
    Mike

    Ahh, I just changed the config from desc to asc ($paged_comments->ordering = 'ASC';) and it worked. I know what the problem was, it was because in the DESC mode the first page was the last page and it dident show the full 10 entries. Confusing but its ok.

  • 318
    Mike

    I meant 4. To bugtest I just echo’d out the $comment DB query which shows as:

    SELECT * FROM wp_comments WHERE comment_post_ID = '29' AND comment_approved = '1' ORDER BY comment_date DESC LIMIT 0, 4

    I don’t know why $limit_clause is returning 4…

  • 317
    Mike

    Well i tried it with wp 2.1, at first it did not work, so I tinkered a bit and manually renamed the template tag. Also for some reason it wouldent read the config file, so i added the config in the actual plugin.

    It works-ish, for some reason, no matter how I config, it only shows 5 comments in accending order per page.

  • 316
    Ronda de plugins para WordPress » La mate por un yogur

    [...] WordPress Paged Comments Plugin es, como su nombre indica, un paginador de comentarios. Ideal si tienes varias entradas en el blog con cientos de comentarios y no deseas cerrarlos. [...]

  • 315
    kretzschmar

    Keyvan: I made one last change to the load_plugin_textdomain function. Now the path isn’t hardcoded anymore, so no problems if someone changes the directory name.
    Download it on my site.

    http://diekretzschmars.de/2007/paged-comments-deutsch/

  • 314
    Keyvan

    patung: Glad to hear it’s working.

    kretzschmar: Thanks, I’ll include it in the next release.

  • 313
    kretzschmar

    Keyvan:
    I just updated my Plugin with your new code. There are only a few (two or three) strings in your package. Why don’t you just use my code?

  • 312
    kretzschmar

    Keyvan,
    gettext is supported from wordpress “out of the box”. If you don’t set your locale in wp-config.php (wp-lang) it uses the default string in your plugin file. So no problems at all. Try using my plugin and you will see.
    I use it in my theme dKret without problems.

  • 311
    patung

    No wait, I’m an idiot, it does work. Thankyou Kevyan.

Pages: « 7637 36 35 34 33 [32] 31 30 29 28 271 » Show All

Leave a Reply