Wordpress REVOLUTION theme tweaks #2

September 16, 2008 by tibor 

To enable the commenting ability on a static Page post in the REVOLUTION wordpress theme (for example for a Testimony Page)

Insert the following code segment:

<div class="comments">
<h4>Comments</h4>
<?php comments_template(); // Get wp-comments.php template ?>
</div>

into the theme’s page.php file to make it look like below:

<?php get_header(); ?>
<div id="content">
<div id="contentleft">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(__('Read more'));?><div style="clear:both;"></div>
<!--
<?php trackback_rdf(); ?>
-->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
<div class="comments">
<h4>Comments</h4>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar_page.php");?

Comments

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!

You must be logged in to post a comment.