How to install and configure Recent Comments WordPress Plugin

You can let the plugin order the comments by the corresponding post, or simply order them by date. Now blog up your Blogging with the Recent Comments WordPress Plugin. This is the most simple plugin in terms of showing up in the run time.

Before proceeding ahead, we highly recommend you to read Show Blog Recent Comments with the Recent Comments WordPress Plugin.

This plugin returns a list of the most recent comments on any post of your blog. It provides a template tag (function) you can use:

How to install and configure Recent Comments WordPress Plugin

<?php src_simple_recent_comments(arg1, arg2, 'arg3', 'arg4') ?>

Arguments explanation:

  • arg1 (numeric): The number of comments to return. Default: 7
  • arg2 (numeric): The comment excerpt length. Default: 60. This number also includes the HTML tags. Only this number of characters are retrieved from the database in order to reduce the load.
  • arg3 (alphanumeric): The HTML code to prepend to the list. Default: <li><h2>Recent Comments</h2>
  • arg4 (alphanumeric): The HTML code to append to the list. Default: </li>

The default values are based on the assumption that this template tag is placed in the sidebar. You can customize it as you like.

It can be used without arguments. In this case the defaults will be used.

<?php src_simple_recent_comments(); ?>

I would recommend to use the following way of placing the function in your template:

<?php if (function_exists('src_simple_recent_comments'))
 { src_simple_recent_comments(); } ?>

This way, even if you de-activate the plugin in your administration panel, but you have not removed it from your templates, it would not produce any errors.

Here’s is the installation guide:

Copy the simple_recent_comments.php file in your /wp-content/plugins/ directory and activate the plugin from the administration panel.

Place the template tag in your sidebar.

Its Done. Your Blog is now powered with Recent Comments Plugin. Do share your experience here. So share your comments and please share. Subscribe us to our latest Email Subscription.

Get all Blogging Tips & Tricks, ideas, Wordpress Hacks & Tricks, Social media optimization, SEO, Online money. Just subscribe with your email id HERE.


  1. TechGopal says:

    looks useful plug in….
    i am going to to try it……..

  2. Recently I have been seeing this recent comments on several blogs and was wondering how they were able to do that. I thought it was a plugin or module, but now I did understand the way it is done.

0 Trackbacks

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.