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

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 £0 ($0/€0) :(

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

709 Responses to “WordPress Paged Comments Plugin”

Pages: « 7111 10 9 8 7 [6] 5 4 3 2 1 » Show All

  • 60
    Taimur Khan

    Yes, it’s working well now:
    http://www.sarangi.info/archives/91

    Using the Static Frontpage plug-in by Semiologic is not a problem as I even tried turing it on and off to no avail, and am using it still. The paged comments plug-in started working normally only when I deleted the script from the single.php for quite another reason (mentioned in my last response) - mere coincidence it was…

  • 59
    Keyvan

    Hi Taimur, I have to admit I’m still a bit baffled as to why it wasn’t working before. It could be that the other plugin was interfering and caching the page - preventing the display of the dynamically generated comment page number - but I really can’t be sure until I try it. I’m glad you’ve managed to get it to work. If you experience any other strange problems, let me know and I’ll try running the two plugins side-by-side myself to see what it could be. Thanks for the update!

  • 58
    Taimur Khan

    I use the Default Kubrick theme and did not want this text to appear on my posts pages:

    “This entry was posted on Wednesday, November 16th, 2005 at 12:00 pm and is filed under Events. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Edit this entry.”

    So I excluded the following script from my single.php file:

    This entry was posted
    post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
    on at and is filed under .
    You can follow any responses to this entry through the feed.
    comment_status) && ('open' == $post->ping_status)) {
    // Both Comments and Pings are open ?>
    You can <a href="#respond" rel="nofollow">leave a response</a>, or <a>" rel="trackback">trackback</a> from your own site.
    comment_status) && ('open' == $post->ping_status)) {
    // Only Pings are Open ?>
    Responses are currently closed, but you can <a> " rel="trackback">trackback</a> from your own site.
    comment_status) && !('open' == $post->ping_status)) {
    // Comments are open, Pings are not ?>
    You can skip to the end and leave a response. Pinging is currently not allowed.
    comment_status) && !('open' == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    Both comments and pings are currently closed.

    Not only did the above-mentioned text disappear as desired, the paged comment fuction with all the page and comment numbers, etc. started to work normally for me as well. I don’t know why that happened but it did, and I am very happy. Thank you for this excellent plug-in!

  • 57
    Taimur Khan

    I am also using the static frontpage plug-in by Semiologic. Do you think that could interfere with comment page numbers?

    Anyway, thank you very much for your time. I hope I can find an easy solution with your help. Otherwise, please don’t waste too much time on my case.

    Warm regards,
    Taimur.

  • 56
    Keyvan

    Taimur, I don’t have much time to look into this now. Will try and see what the problem is tonight. I had a quick look at your page’s HTML source and it does not include the page numbers (so no CSS interference). Are you sure you’ve followed all the installation steps? If you are using one of my bundled templates your HTML source should include the comment numbers. I’ll have another look tonight.

  • 55
    Taimur Khan

    Thank you for the quick reply! Yes, the code you mentioned exists in the comments-paged.php file.

    I have enabled the plug-in again and made 12 test posts on this page: http://www.sarangi.info/archives/91

    The descending order of posts has been put into effect by the plug-in but the page numbers do not appear.

  • 54
    Keyvan

    Left that last comment unfinished, sorry. If you do find the page number in the HTML source, but they don’t appear when you’ve viewing the page, then the theme you’re using probably has CSS rules affecting the display of the page numbers. If that’s the case, let me know what theme you’re using and I’ll take a closer look.

  • 53
    Keyvan

    Taimur, the comments-paged.php template file pulls in the page numbers. Here’s a snippet from comments-paged.php (taken from the plugin’s /themes/default/ folder):

    <!-- Comment page numbers -->
    <?php if ($paged_comments->pager->num_pages() > 1): ?>
    <p class="comment-page-numbers"><?php _e("Pages:");?><?php
    paged_comments_print_pages(); ?></p>
    <?php endif; ?>
    <!-- End comment page numbers -->

    The best thing to do is enable the plugin, load up the page you’re expecting the page numbers to appear on, and look through the HTML source for the page numbers.

    Let me know if you’re still having problems with the plugin.

  • 52
    Taimur Khan

    I installed the plug-in and it was working well for all the test comments I posted, except for the fact that when I posted the 11th comment, the last ten disappeared and there was no page number visible through which the previous comments could be accessed. The number of responses, etc. was all there but the previous comments that had be relegated to another page were simply not accessible as there was no comments page number visible. I have disabled the plug-in on my site for now but would really like to have it for my Guest Book.

    Could you please tell me what is the code for comment page number and where does it reside?

    Thank you.

  • 51
    mary

    Nice plugin. Thanks!

Pages: « 7111 10 9 8 7 [6] 5 4 3 2 1 » Show All

Leave a Reply