This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Maximum Number of Comments

Description

This plugin enables the setting of a maximum number of comments allowed to display
in each post. In addition, it provides a link to expand the comments showing all the remaining ones.

All the comments above the defined maximum number are hidden.
By clicking on the link ‘Click here to see the remaining comments’ they will be shown.

On the Plugin homepage you will find these description and instructions:

Internationalization

This Plugin has English as the default language but you may find the POT file
available with this distribution to create your own language version.

Also in this distribution you have the language versions:

  • Portuguese (Portugal)
  • French (France)

Credits

Copyright 2007 Jose Lopes

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Installation

  1. Decompress the files to the /wp-content/plugins/ directory.
  2. Confirm that the plugin content is on the directory maximum-number-of-comments.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Edit the comments.php file of your theme.
  5. Delete the comment block starting with <?php if ($comments) : ?> and ending with <?php endif; ?>.
  6. Write in its place <?php MaximumComments(2, $comments, $oddcomment) ?>, were:

    1. the number 2 represents the maximum number of comments displayed (can be any value).
    2. the constant $comments should not be changed.
    3. for the constant $oddcomment, if it doesn’t appear previouly on the comments.php file just write ‘alt’ instead.

Contributors & Developers

“Maximum Number of Comments” is open source software. The following people have contributed to this plugin.

Contributors