How to Add Page Level Comments to a WordPress Theme

If you need to add comments to your Pages when using WordPress, just add the following line of code to your Page Template:

<?php $postcount++; ?>

<?php if ((‘open’ == $post-> comment_status)) { comments_template(); } ?>

<?php endwhile; ?>

I’m using the “LightBreaker” theme so I only need to edit one file.

image

Then on the page editor, I can control the comments by changing the advanced setting for “Allow Comments”:

image