Adding Comments to Wordpress Pages

Wed, Nov 25, 2009

Open Source, PHP

It really annoyed me that my static pages didn’t have comments enabled, so I searched around and came up with a solution.

Open page.php

Before

1
<?php endwhile; ?>

Add

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

2 Responses to “Adding Comments to Wordpress Pages”

  1. amrosama Says:

    thnx that was really useful

    Reply

  2. John Says:

    Glad you found it useful. :)

    Reply