Need to remove comments and the comment form on your posts? In this tutorial, i’ll show you how to:
- disable comments on specific posts
- remove comments from all posts in a category
- remove comments from all posts in multiple categories.
- remove comments from all but one category.
- remove comments entirely from different themes.
Disable Comments on Specific Posts
If you need to disable comments on specific posts, you can easily disable them on each post manually.
You can also add the i.d’s for each post to an array in a custom function.
Simply replace the numbers in the array with the posts i.d’s you want to remove your comments from and separate them with a comma.
Remove Comments From All Posts In One Category
Remove Comments From All Posts In Multiple Categories
In this case replace the numbers in the array with the i.d’s for each category you want to exclude comments on.
Remove Comments From All But One Category
Replace the category i.d with the i.d for the category you want to allow comments on. This code will disable comments on all posts in all but one category.
Remove Comments Completely From Your Site
If you don’t want any comments on your site ever, you can remove this line of code from your single.php file.
<?php comments_template(); ?>
Remove Comments From Genesis Theme
This code will remove all comments from your entire site.
Plugins for Removing Comments
Not a coder? Lucky for you i’ve searched the WordPress plugin repo and found a plugin which enables you to easily remove comments from your blog posts.
Disable Comments enables you to disable comments on different post types or your entire site.
This plugin is clearly not as flexible as using code and most useful when removing comments for custom post types.
Delete, Remove & Turn Off Comments
If you want to delete comments, here’s a few tips about how to delete comments by date, remove comments in your spam queue and simply turn off comments.
Was This Tutorial Helpful?