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
![]()
There are few items you will need
- Access to your Blog directory structure from an FTP client such as Filezilla
- Text editing software such as Notepad
Setting up
- **Important** Through your FTP client, make a back of home.php
- Login to your site
- Go to Presentation
- Click on Theme Editor
- Open the home.php
- 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; ?> - Inserting comments is tricky so I quickly searched the web and came up with this: http://wordpress.org/extend/plugins/recent-comments/
- 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
- Recent comments are displayed in the home page
Variables
- The readme file in the plugin has instructions on the parameters that can be changed
no comments