Plugin Directory

Get Recent Comments

  1. Upload get-recent-comments.php to the /wp-content/plugins/ directory.
  2. Activate Get Recent Comments through the 'Plugins' menu in WordPress.
  3. What to do now depends on how up to date your theme is:

    Modern theme with widget support

    The plugin is a widget. If your theme supports widgets, and you have installed the widget plugin, adding the plugin to the sidebar is easy: Go to the presentation menu and drag and drop the widget into the sidebar (Screenshot). Don't forget the Get Recent Trackbacks box. And you might want to change the title. All done.

    Old school theme without widget support

    You need to insert the following code snippet into the sidebar template.
    wp-content/themes/<name of theme>/sidebar.php

    <?php if (function_exists('get_recent_comments')) { ?>
    <li><h2><?php _e('Recent Comments:'); ?></h2>
          <ul>
          <?php get_recent_comments(); ?>
          </ul>
    </li>
    <?php } ?>   
    
    <?php if (function_exists('get_recent_trackbacks')) { ?>
    <li><h2><?php _e('Recent Trackbacks:'); ?></h2>
          <ul>
          <?php get_recent_trackbacks(); ?>
          </ul>
    </li>
    <?php } ?>
    

Download

FYI


Compatibility

+
=
Not enough data

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

Log in to vote.

100,1,1
50,2,1
83,6,5
100,1,1 100,3,3
100,2,2
89,19,17
100,3,3

Average Rating

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