How to disable comments in WordPress (the full guide)

How to disable comments in WordPress (the full guide)

Although WordPress comments are very useful for engaging your visitors to interact with your website at times these comments are not desirable. So, it’s useful to know how to disable comments in WordPress. You can disable comments from almost any content; your blog posts, website pages, and other post types, when they become unwanted spam and perhaps harm your reputation.

This article created by our team at wpDataTables, will discuss how and why you can disable comments in WordPress..

Why Would One Want to Disable Comments in WordPress?

When WordPress started as a blogging platform, comments were one of the most important and robust features of the platform.

Now, however, many companies and businesses base their whole websites in WordPress. These contain  content where comments are not likely to be posted, for example, the About Us page, or pages for product description or services.. Thus disabling comments would be appropriate.

Other situations where comments are not useful are:

  • For companies and owners that don’t have blogs, or where the pages promote content that doesn’t require comments, such as product pages.
  • If the website has mostly static pages that are geared towards providing information rather than sparking a conversation.
  • For pages where the content is professional company description rather than comments ruining their reputation.
  • When you have a forum dedicated towards conversation, rather than allowing the users to comment on your posts.
  • Comments can be used to spam your website, so here too, it’s useful to turn the comments off. Spam can harm your reputation and make your posts and pages less desirable.

What do you lose by disabling comments?

The biggest drawback of turning off the comments is there will be less user interaction and opinions.

Secondly, your site might have a small reduction in the SEO ranking, as comments can improve SEO ranking

Lastly, you have no information about the opinions and feedback of your users, which can help you to improve your site or products. However, there are other ways of collecting user feedback.

How to Disable Comments in WordPress

Disabling Comments for Future Posts

You can easily disable comments in WordPress for future posts from the admin dashboard within WordPress. Here is how to do it.

  • Go to the admin panel, and go to Settings > Discussion
  • Here, you will find the option to check the box next to the option that says “Allow people to post comments on new articles”. Check the box, Save Changes, and the changes should take place.

You can choose to turn off comments for posts that are a few days old. You can specify how old the posts can be.

  • Go to Settings > Discussion
  • Locate the “Automatically close comments on articles older than X days”. Then, you will want to toggle the function on/off.

These instructions will disable comments in WordPress for future posts and you can also manually disable them for each individual post.

Disabling Comments for Individual Posts

You can easily disable comments for specific posts or pages, by accessing the page or post in question. Here is how to do it:

  • Go to the page/post in question. On the right-hand side, you will see a section named Discussion. Open the section.
  • Locate the option to disable the comments and uncheck the box next to the Allow Comments section. This will disable comments in WordPress for this specific post, but it will not erase the existing comments.
  • To delete existing comments, go to your dashboard, and go to Comments, and delete them.

Disabling Comments for Selected Posts in Bulk

You can also disable the comments for specific posts in bulk by:.

  • Going to the All posts section. Select the posts where you want to disable comments.
  • Click on Bulk Actions – Edit – Apply.
  • A Bulk Edit option will open up, where you will be able to check the box next to Do not allow the option for comments

Please note that you will only have the ability to disable comments for 20 posts at a time. To change that, you can do it multiple times, or you can go to Screen Options and change it.

Disabling Comments on all Existing Posts

You can easily delete the comments for individual posts that have already been posted, and you can delete the selected posts already in place.

  • Go to your Dashboard, and go to the Comments section.
  • Select the comments you want to delete, select Bulk Actions, and click on Move to Trash, and click apply.

Delete Pingbacks and Trackbacks

Pingbacks and trackbacks can be very annoying as they can bring a lot of spam to your site. That is where people connect their comment to the content from their own website over to yours. Many disable these automatically.

  • In Settings, open the Discussion tab.
  • Go to default article settings, and uncheck the box next to Allow link notifications from other blogs on new articles, which should prevent spam.

Disable Comments on Media

Even if you have disabled the comments for your post, you must also disable comments in WordPress for specific media filesl. People will still be able to post comments to the media files created with new media posts.

To disable comments in those attachments, do the following:

  • Go to Media Library, and select the items where you want to delete the comments.
  • You will find a Discussion box, where you will be able to delete the comments.
  • If you want to disable comments in bulk for media files, you can do this by entering this code to the functions.php file of your WordPress theme:
FUNCTION FILTER_MEDIA_COMMENT_STATUS( $OPEN, $POST_ID ) {
$POST = GET_POST( $POST_ID );
IF( $POST->POST_TYPE == 'ATTACHMENT' ) {
RETURN FALSE;
}
RETURN $OPEN;
}

ADD_FILTER( 'COMMENTS_OPEN', 'FILTER_MEDIA_COMMENT_STATUS', 10 , 2 );

Ending thoughts on how to disable comments in WordPress

The above-mentioned solutions will help users to disable comments in WordPress in order to prevent spam or other issues.

If you enjoyed reading this article about disable comments in WordPress, you should read these as well:

Up Next:

Top WordPress contest and giveaway plugin examples

Top WordPress contest and giveaway plugin examples