Plugin Directory

Maximum Number of Comments

  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.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

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