Subscribe to RSS
There are WordPress blogs out there that have comments disabled on all posts except a few selected ones where visitors can post comments to. These selected posts which have comments enabled are either open to comments for an indefinite period of time or for a specified number of days after which they are closed. WordPress by default shows the message 'Comments are closed.' even on posts which were never open for comments. This behavior might not be liked, however, users can choose to disable this message and make it appear only on posts which were once or still are open to comments. The procedure outlined below assumes that the structure of the comments.php file is based on the file found inside the default WordPress theme.
Following are the steps that are required to make the modification:
<?php if ('closed' == $post->comment_status) : ?>
<p>Comments are closed.</p>
<?php endif; ?>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p>Comments are closed.</p>
You are done...
Hope this blog post was helpful to you, "How to Remove, "Comments are Closed" Message in WordPress"
Spunky Jones.
Related Posts: