How to Disable Comments in WordPress (2023 Guide)

Comments can be a great way to engage readers and build a community around your WordPress site. However, there are times when disabling comments makes more sense. Maybe you‘re being overwhelmed by spam, don‘t have time to moderate discussions, or simply don‘t need commenting functionality on your site.

Fortunately, WordPress provides several methods to turn off comments, either globally or for specific types of content. In this guide, we‘ll walk you through how to disable comments in WordPress using built-in settings, code snippets, and plugins. Whether you want to shut down comments across your entire site or just on certain posts or pages, we‘ve got you covered.

Here‘s a quick overview of the methods we‘ll cover:

  • Disabling comments on specific posts and pages
  • Bulk disabling comments on existing content
  • Deleting all comments at once
  • Preventing comments on future posts
  • Turning off comments on media attachments
  • Using a plugin to disable comments globally

We‘ll provide detailed instructions and screenshots for each approach. By the end, you‘ll be able to confidently manage comments on your WordPress site and customize settings to fit your unique needs. Let‘s dive in!

How to Disable Comments on Specific Posts or Pages

If you want to turn off comments for an individual post or page, WordPress makes it easy. Here‘s how:

  1. Go to Posts > All Posts or Pages > All Pages
  2. Hover over the post/page title and click "Edit"
  3. In the post editor, look for the "Discussion" meta box on the right
  4. Uncheck the box for "Allow comments"
  5. Update or publish the post/page to save changes

Disable comments on WordPress post

You can follow the same steps for pages, custom post types, and even media attachments. This allows you to selectively disable comments on certain content while leaving them enabled elsewhere.

One thing to note is that unchecking "Allow comments" only affects that particular post or page. It won‘t change your site‘s global comment settings. We‘ll cover how to disable comments across your whole site further down.

Bulk Disable Comments on Multiple Posts or Pages

What if you want to disable comments on multiple posts or pages at once? WordPress lets you bulk edit comments without having to update each piece of content individually.

Here‘s how to bulk disable comments:

  1. Go to Posts > All Posts or Pages > All Pages
  2. Check the box next to each post/page you want to update, or select all
  3. Choose "Edit" from the "Bulk actions" dropdown
  4. Click "Apply" to pull up the bulk edit options
  5. Under "Comments" select "Do not allow" from the dropdown
  6. Click "Update" to apply the changes

Bulk disable comments in WordPress

This process works for both posts and pages. Just repeat the steps on the respective admin screens.

Keep in mind that bulk editing will only disable comments moving forward. If a post or page already has existing comments, they will remain published on your site. To remove them, you‘ll need to delete your WordPress comments.

How to Delete All WordPress Comments

Disabling comments stops new ones from being submitted, but it doesn‘t get rid of existing comments on your site. Luckily, it‘s fairly simple to delete all WordPress comments at once if needed:

  1. Go to Comments in the WordPress admin
  2. Select all comments by checking the box next to "Author"
  3. Choose "Move to Trash" from the "Bulk actions" dropdown
  4. Click "Apply" to delete the selected comments

Delete WordPress comments in bulk

If you have more than a few dozen comments, they may span across multiple pages. Just repeat the bulk delete process until you‘ve cleared out all unwanted comments.

Remember that deleted comments will remain in the trash for 30 days by default. After that, they‘ll be automatically purged from your WordPress database. If you need to free up space immediately, you can empty the trash by clicking "Empty Trash" on the Comments screen.

Prevent Comments on Future Posts in WordPress

We‘ve covered how to disable comments on existing WordPress content. But what about future posts?

You can configure your site‘s Discussion settings to prevent comments on new posts by default:

  1. Go to Settings > Discussion
  2. Uncheck the box for "Allow people to post comments on new articles"
  3. Click "Save Changes" at the bottom of the screen

Prevent comments on new WordPress posts

Now, comments will no longer be enabled when you create a new post. If you ever want to allow comments on a specific post, just edit it and check the "Allow comments" box like we showed earlier.

While you‘re on the Discussion settings page, you can customize additional options to streamline your comment moderation workflow:

  • Require comment author name and email
  • Automatically close comments after a certain number of days
  • Enable comment moderation and approval
  • Block comments based on number of links
  • Blacklist specific words, names, URLs, emails, or IPs

Feel free to adjust these settings based on your needs and preferences. Even if you‘re disabling comments site-wide, configuring basic options can help keep your discussion system efficient.

Turn Off Comments on WordPress Media Attachments

By default, WordPress allows comments on all your content, including media attachments like images, videos, and documents. If you want to disable comments on media files, you‘ll need to add a code snippet to your theme.

Keep in mind that editing theme files directly can cause issues if not done carefully. Make sure to use a child theme or create a site backup before proceeding. If you‘re not comfortable with code, consider using a plugin instead.

To disable comments on media attachments, add the following snippet to your theme‘s functions.php file or a site-specific plugin:

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 );

This snippet hooks into WordPress‘ comments_open function and checks the post type. If the content is an attachment (media), it returns false to disable comments. Otherwise, it returns the default $open value to keep comments enabled on other post types.

After adding the code, save your changes and test that comments are turned off for media attachments. You can also customize the snippet to target specific media types by adding conditional tags.

Disable WordPress Comments Using a Plugin

If you want a simple way to globally disable comments in WordPress, using a plugin is the way to go. There are a few great free options, but we recommend Disable Comments for its ease of use and flexibility.

Here‘s how to disable comments in WordPress using Disable Comments:

  1. Install and activate the free Disable Comments plugin
  2. Go to Settings > Disable Comments
  3. Select "Everywhere" to turn off comments site-wide
  4. Alternatively, choose which post types to disable comments on
  5. Click "Save Changes" to apply your new settings

Disable Comments plugin settings

The Disable Comments plugin provides an easy on/off toggle for your site‘s entire comment system. In one click, you can disable comments everywhere, including posts, pages, attachments, and even custom post types.

If you don‘t want to disable comments across the board, the plugin lets you choose specific post types. This is handy if you want to allow comments on posts but disable them on pages, for example.

In addition to controlling front-end comments, the plugin cleans up the WordPress admin by hiding all comment-related settings and menu items. It will even disable outgoing pingbacks and traceback for a cleaner, faster site.

Using Disable Comments is the quickest and safest method, especially if you‘re not comfortable editing theme files or don‘t want to fuss with multiple settings. Give it a try if you want to easily shut down comments on your WordPress site.

Wrapping Up

And there you have it! You now know several ways to disable comments in WordPress. Whether you want more control over individual posts, need to bulk edit existing content, or are looking to shut down comments entirely, these methods will help you get the job done.

To recap, you can disable comments in WordPress by:

  • Turning off comments on specific posts or pages
  • Bulk disabling comments on multiple pieces of content
  • Deleting all comments from your site
  • Preventing comments on new posts via Discussion settings
  • Adding code to disable comments on media attachments
  • Using the Disable Comments plugin to turn off comments globally

Each approach has its advantages, so consider your needs and skill level when deciding which one to use. Don‘t forget to explore the Discussion settings to customize WordPress‘ default comment system. You can require additional info from users, enable moderation, and fight spam with advanced options.

At the end of the day, whether you choose to allow comments is up to you. Some sites thrive on community engagement, while others are better off without public discussion. Focus on your content strategy and goals, then pick the right method to effectively manage your site‘s comments.

Now that your comment system is under control, you can get back to creating awesome content for your readers. Happy blogging!

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.