WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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

Comment Counter

Comment Counter - Count comments by a commentator.

  1. Download Comment Counter plugin
  2. Unzip the archive
  3. Upload the folder comment_count into ../wp-content/plugins/
  4. Activate the plugin through the 'Plugins' menu in WordPress
  5. Place <?php comment_counter();?> in your template
  6. Have fun!

Info: If you use <?php wp_list_comments(); ?> in your template you should read this article.

Bitte besuch die Comment Counter Seite fuer eine deutsche Anleitung.

Default Usage

<?php $args = array(
        'routine' => 'email',
        'exclude' => '',
        'cc_comment_id' => '',
        'echo' => 1,
        'format' =>  '<small>%s</small>',
        'german_plural' => 1,
        'access' => ''
        );
?>

.

Parameters

routine (string) The count parameter. Valid values:

  • 'email' (default) the commentator e-mail adress
  • 'author' the commentator name
  • 'url' the commentator url
  • 'id' the user ID of the commentator
  • 'ip' the commentator IP

exclude (string) Define which e-mail, name, url, id or ip shouldn't be count. Valid values:

  • 'email@email.de,spam@cvo.de'
  • 'max,anna,lukas'

cc_comment_id (int) Define an ID of a comment. It will display the count from the commentator of this comment. Valid values:

  • '4355435'

echo (boolean) If you want to save the number in a variable, you should use echo=0. Valid values:

  • '1' (true) output via echo
  • '0' (false) output via return

format (string) Style the output Valid values:

  • '%s comments (that are %s of %s comments' first %s for comment count. Optional: second %s for percentage and the last %s for total comments.

access (string) Who should see the comment count. Values are capabilities. Valid values:

  • '' (default) All user can see the number
  • 'manage_options' Only users who can change options can see the number (Admins)

Requires: 2.6 or higher
Compatible up to: 3.0-alpha
Last Updated: 2010-1-30
Downloads: 3,402

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1
100,1,1
100,1,1 100,1,1
100,2,2
0,2,0