Inserting Recent Comments into the Home Page

The Revolution wordpress theme by Brian Gardner is the basis on which this website is built. A question has been raised as to how one goes about inserting ‘Recent Comments’ in the dynamic areas:

Dynamic Area

Featured Page Areas

There are few items you will need

  1. Access to your Blog directory structure from an FTP client such as Filezilla
  2. Text editing software such as Notepad

Setting up

  1. **Important** Through your FTP client, make a back of home.php
  2. Login to your site
  3. Go to Presentation
  4. Click on Theme Editor
  5. Open the home.php
  6. Scroll to the bottom of your selected page, where you will see:<div id=”homepageright”>
    <h3>Latest News</h3>
    <ul>
    <?php $recent = new WP_Query(“cat=12&showposts=5“); while($recent->have_posts()) : $recent->the_post();?>
    <li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>
    <?php endwhile; ?>
  7. Inserting comments is tricky so I quickly searched the web and came up with this: http://wordpress.org/extend/plugins/recent-comments/
  8. I then replaced the code so that it looked like:<div id=”homepageright”>
    <ul>
    <p>Recent Comments</p>
    <?php mdv_recent_comments(); ?>
    <ul>

End Result

  1. Recent comments are displayed in the home page

Variables

  1. The readme file in the plugin has instructions on the parameters that can be changed

Your email is never published or shared. Required fields are marked *

*

*

There was an error submitting your comment. Please try again.