If you’re looking for a way to enable or disable comments on your WordPress blog, this post is for you. It will show you how to do it in just a few easy steps. Comments are an important part of blogging, so let’s get started!
When you create a new post and page in WordPress, comment is enabled by default. This doesn’t always work in everyone’s favor. There are many times you don’t allow comments on posts or pages such as Policy, About. And there are times you forget to enable comments on posts. There are many ways to enable or disable comments .
Enable/Disable on individual post/page
WordPress has an option for author to enable or disable comment status under post’s body. However, it is not shown by default. First, you need top enable Discussion box by check on Discussion under Screen Options popup menu.
After that, you will see the discussion box displayed right below post’s body. You decide whether to allow comment on current post or not.
Enable/Disable comment programmatically
Making change in individual post is nice, but how will you do it when there are hundreds of posts or pages waiting to be modified? If you knows a little bit about MySQL, this will come in handy.
//enable comments UPDATE wp_posts SET comment_status = 'open' //disable comments UPDATE wp_posts SET comment_status = 'closed'
In most cases, wp_posts is the table which stores posts’ data and their comment status. If you chose a different table prefix when installing WordPress, you need to adjust the table name to be yours.
Enable/Disable comment by using plugins
If you are not tech savvy, using plugins is your solution. Following are the best plugins for this case.
No Page Comment is a plugin that allow bulk-ebale or bulk-disable comment on pages. It divided posts and pages into 2 cases, current ones and new ones. If you only want to modify old posts, choose setting on “Modify all current”; otherwise, choose “Disable comments on new”.
Disable Comments helps to stop unwanted commentary from hurting your website’s SEO. Add as many spam protection rules as you need without having to do any complicated programming, and feel safe knowing that the result is an elegant user experience protected from spambots.
Disable Comments allows administrators to globally disable comments on any post type. Use this only if you don’t want to allow comment on your blog.
Gain complete control over your network of sites with WP-CLI support, programmatic XML-RPC or REST API access now!
TL Bulk Comment Delete is a tool that allows you to delete comments in bulk, one time or over the course of your TL. The ease and efficiency it affords will make this indispensable for any regular user who needs to keep their TL tidy and not be bothered with tedious cleanup. This product also comes with other bonuses!
Each Bulk Action offers features designed specifically for how that kind of comment would typically be used – from spamming through links which are often trending on popular sites like Twitter or Facebook to removing unapproved comments from longtime followers who may no longer follow the rules. Allowing you to enter comments individually will help those who want more control over every individual action they take – but really why would anyone need such an inefficient experience?