Plugin Directory

Maximum Number of Comments

Sets the maximum number of comments allowed to display in each post. Provides a link to show the remaining comments.

Download Version 1.0

  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.

Compatible up to: 2.7
Last Updated: 2007-11-28 Downloads: 778

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.