How to enable comments on Wordpress Pages

Some WordPress themes come with the comments feature enabled on pages.  WordPress theme, WP-Andreas09,  is a good theme that has this feature enabled right out of the download file.  Though its a good theme, I do not like it because its code templates are not easy to modify.

My Revolution WordPress theme came without the comments feature for the pages.  I like this WordPress theme because its code templates are clean and easy to modify.

I found the code, posted by pramod, for enabling comments here and its pasted below.

Locate following code in page.php [template file]

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php endwhile; endif; ?>

In between these lines add following:

<?php comments_template(); ?>

I had to play around with the placement of the code, but it works fine for my theme.

2 comments to How to enable comments on WordPress Pages

  • Thanks this worked great for me! I tried some other folks code but for WordPress v2.9.2 this was the ticket, thanks again!
    Matt L.´s last blog ..Weekly Tweets 2010-04-18 My ComLuv Profile

  • Thanks Americaneer,
    It took me a few attempts to get this to work – but success.
    I started by searching for the first line of code you have above, and added the extra line beneath it, but the comments window was at the top of the page.
    i then searched for the second line, and slipped the code in just above it. BINGO.
    Bundaberg Massage´s last undefined ..If you register your site for free at My ComLuv Profile

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled