Plugin Directory

WP-RecentComments

  1. Unzip archive to the '/wp-content/plugins/' directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. This is two ways to add the WP-RecentComments widget to the sidebar:
    • Go to 'Design->Widgets', and add the WP-RecentComments to your blog.
    • In your 'sidebar.php' file add the following lines:
<h3>Recent Comments</h3>
<ul><?php wp_recentcomments(); ?></ul>

OR

<h3>Recent Comments</h3>
<ul><?php echo wp_recentcomments($args='', $echo=false); ?></ul>

Arguments:

NAME            TYPE       DESCRIPTION                    DEFAULT VERSIONS
limit           integer    The number of comments.        5       1.0+
length          integer    The length of each comment     50      1.1+
                           excerpt.
post            true/false Show the post titles.          true    1.1+
pingback        true/false Show the pingback comments.    true    1.1+
trackback       true/false Show the trackback comments.   true    1.4.3+
avatar          true/false Show author avatars.           true    1.1+
avatar_size     integer    The size of avatars.           32      1.1+
avatar_position left/right The position of avatars.       left    1.1+
avatar_default  string     The default avatar.                    1.4.1+
navigator       true/false Show navigator buttons.        true    1.3+
administrator   true/false Show the comments from         true    1.4.2+
                           administrators.
smilies         true/false Show smilies as graphic icons. false   1.6+

Default Avatar:

  • You can only entry a filename from '/wp-recentcomments/avatars/' directory.
  • When you want to use an Internet image, you have to entry the filepath and start with 'HTTP://'.

Using Examples:

<?php wp_recentcomments('limit=10&length=20&post=false'); ?>
<?php wp_recentcomments('pingback=false&navigator=true&administrator=false'); ?>
<?php wp_recentcomments('avatar=true&avatar_size=16&avatar_position=right'); ?>
<?php wp_recentcomments('avatar=true&avatar_default=default.jpg'); ?>
<?php wp_recentcomments('avatar=true&avatar_default=http://www.neoease.com/avatar.gif'); ?>

Custom CSS:

  • WP-RecentComments will load wp-recentcomments.css from your theme directory if it exists.
  • If it doesn't exists, it will load the default style that comes with WP-RecentComments.

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
(28 ratings)