Last Updated on 30 Agustus 2010 by dani
Blog posting with closed comment is difficult to identified. Not usable in my mind. Check WordPress dashboard. Discussion setting is available in
example.com/wp-admin/options-discussion.php. There are some options to disallow comments.
- In menu "Default article settings", uncheck
Allow people to post comments on new articles. Users may see some texts in post meta data and comment section that
comment is closed at the time. Or change
comments.phpfile properly. But
Allow commentsoption in individual posting may change this default preferences.
- In menu "Other comment settings", there is an option to
Automatically close comments on articles older than [numeric] days. By default, in the blog post, no text mentioning that comment is already closed. Not usable, I think.
On this unessential weblog, all comments are already closed for sure using both of those methods. Then I chose to modify
comments.php file to make it more usable. Before the line
<?php if ('open' == $post->comment_status) : ?>
I put these markups
<p class="nocomment"><em>Sorry, all responses are closed at this time. You may <a href="https://daniiswara.com/contact/">contact me</a> if needed.</em></p>
And change post meta data to inform that comments are closed. So you don’t have to scroll down, waste your time, and find no more comment form available.