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: « 7623 22 21 20 19 [18] 17 16 15 14 131 » Show All

  • 180
    Sonali

    I’m having wordpress mingus version. This plugin isn’t working with it. Pls help and tell me what should I do.

    No good to realize that wordpress isn’t backward compatible… You people always change the very architecture of the package making the latest plugins unusable on previous versions…

  • 179
    Nathan Olsen

    Keyvan —

    I also have Permalink Redirect 0.5.2 installed. The problem occurs when I try to click on a comment page other than the one displayed by default. That is, let’s say that the default comment page is 18 as it is on your paged-comments post. If I were to click on page 17 (or any other page), the permalink would briefly change to end in /comment-page-17/#comments and then get redirected back to the default page. I’m guessing the change I need to make is more on the Permalink Redirect plugin end by writing up a regular expression to skip redirecting those sub-pages. But I haven’t gotten that to work yet.

  • 178
    valerie

    Hi - I really have no idea about the Ajax other than it’s what comes standard with the theme: K2 - http://getk2.com
    And, I dunno why I didn’t think of this before, but disabling the Ajax commenting (in the K2 control panel) does not give the error on commenting…
    Thanks!!

  • 177
    Laslo

    thanks Keyvan.
    I forgot to add the step 5 to my page.php =P

  • 176
    Keyvan

    Valerie: Let me know which Ajax plugin you’re using and I’ll try it and see if there’s a conflict. Thanks.

    Laslo: I take it you’re using custom fields to enable paging for this particular page. That shouldn’t be a problem, but can you try setting all_pages to true and also check to see if your theme has a separate template file for pages. Some themes have single.php and page.php, it could be that you haven’t applied step 5 to the page template so it’s still using the default (non-paged) comments template.

  • 175
    Laslo

    hi, I’m using your plugin in my blog. It’s been working great in posts, but now I tried to applied it to a Page http://www.cinencuentro.com/soundtrack/
    but it seems like nothing happens. I added paged_comments = on
    and then comments_per_page = 15
    but still no change in the comments.
    any ideas what might be happening?

  • 174
    valerie

    Hey there - great plugin. I just installed it after upgrading to 2.0.3, I get this error on comments:

    Fatal error: Call to a member function on a non-object

    That’s on the lines that read:

    <?php if ($paged_comments->pager->num_pages() > 1): ?>

    …for displaying the pages I believe…

    The comments still go through, however. My commenting uses Ajax so it just shows the error right there where the comment should go, but refreshing the page shows the comment instead.

    I appreciate anything you can tell me to point me in the right direction. Thanks so much! :)

  • 173
    Keyvan

    Hi Nathan, I’ve just downloaded the plugin (v0.5.2) and enabled it on my WP2 testbed (using the current paged comments release - 2006-04-07) and it appears to work okay. What problems are you having running the two together?

  • 172
    Nathan Olsen

    Hi Keyvan —

    I’d like to use your plugin on my site but I’m finding that it conflicts with Permalink Redirect. I looked through the comments for your plugin and was surprised that no one else had encountered this. Any suggestions?

  • 171
    星月轮转 / Paged Threaded Comments plugin update

    [...] 前几天想到一个问题,如果把某个留言删除,它的回复怎么办呢?结果是回复没有从数据库中删除,但它们再也不会被显示了,这是因为列出留言时都是从comment_reply_ID为0即顶层的留言开始递归。 Brian’s Threaded Comments和Keyvan’s Paged Comments Plugin似乎都没有考虑这个问题。 [...]

Pages: « 7623 22 21 20 19 [18] 17 16 15 14 131 » Show All

Leave a Reply