Managing Comments: Disable Comments in WordPress

Keep control over your WordPress site’s comments

1. Introduction

💬 “Comments can be a double-edged sword. They can foster a sense of community, but they can also be a magnet for spam and trolls.”

In the realm of WordPress, managing comments is a crucial aspect of maintaining a clean and engaging online space. Disabling comments can be a powerful tool for reducing clutter, improving website performance, and protecting your site from malicious content.

Benefits of Disabling Comments

  • 🛡️ Reduced Spam and Malicious Content: Comments sections can be a haven for spammers and trolls, who can post inappropriate or harmful content. Disabling comments eliminates this risk, ensuring a safe and secure environment for your visitors.

  • Improved Website Performance: Comments can slow down your website, especially if there are a large number of them. Disabling comments can significantly improve page load times, resulting in a better user experience.

  • 🧹 Reduced Clutter: Comments can create a cluttered and overwhelming interface, especially on posts with a high volume of discussions. Disabling comments allows you to present your content in a clean and organized manner.

How to disable comments on WordPress

© Photographer cottonbro studio

Method 2: Disable Comments Globally 💬

If you’re looking for a quick and easy way to silence the comment section, disabling comments globally is your go-to solution. It’s like putting a “Do Not Disturb” sign on your entire WordPress site. Here’s how you do it:

  1. Navigate to Settings > Discussion: This is where all the comment-related settings reside.
  2. Uncheck “Allow people to post comments on new articles”: It’s like flipping a switch that turns off the comment flow.
  3. Click “Save Changes”: And voila! Comments are now a thing of the past.

The impact of this method is like a clean slate. No more comment spam, no more moderation headaches. It’s a peaceful digital sanctuary where your content takes center stage. However, it’s important to weigh the pros and cons before making this decision.

Method 3: Disable Comments on Specific Pages 📝

Use Cases 💁‍♂️

Disabling comments on specific pages can be a great way to maintain control over the content and discussions surrounding those pages. For instance, you might want to disable comments on:

  • Landing pages: Keep the focus on the page’s call-to-action without distractions.
  • Privacy policy pages: Protect sensitive information and prevent spam.
  • Product pages: Avoid negative feedback or inappropriate comments that could damage your brand’s reputation.

By disabling comments on specific pages, you can ensure that these pages remain focused, professional, and aligned with your business goals.

Method 4: Disable Comments on Custom Post Types 💬

Custom post types are specialized content types you can create in WordPress, like products, events, or portfolios. They have their own settings, including the ability to disable comments.

Imagine you’re running an online store and want to showcase your products without the distraction of comments. By disabling comments on your product post type, you create a clean and focused shopping experience.

To do this, go to your post type’s settings and uncheck the “Allow comments” box. It’s like putting up a “No talking zone” sign for your custom content! 🚫

This approach gives you granular control over where comments are allowed, ensuring they only appear where they make sense. It’s like having a toolbox with different wrenches for different jobs – each custom post type can have its own comment settings.

Method 5: Use a Plugin 🔌

Plugins are like magic wands for WordPress! They empower you to enhance your site’s features without any coding wizardry. When it comes to disabling comments, plugins offer a user-friendly solution.

There are plenty of plugins out there, each with its own unique charm. Some popular choices include Disable Comments, WP-Disable Comments, and Disable Comments by Post Type. These plugins provide a straightforward interface, allowing you to toggle comments on or off with just a few clicks.

The beauty of plugins is that they often come with additional features. For instance, some plugins let you disable comments on specific pages or post types. Others offer advanced options like spam protection and comment moderation tools.

Of course, plugins have their drawbacks too. They can add extra weight to your site, potentially slowing it down. And if you’re not careful, you might end up installing multiple plugins that do the same thing, creating conflicts and headaches.

So, before you go plugin-hunting, weigh the pros and cons carefully. If you’re looking for a quick and easy way to disable comments, a plugin could be your perfect match. Just remember to choose wisely and keep your plugin usage in check!

Method 6: Disable Comments via Code

Custom Code Snippet

If you’re a coding whizz, you can disable comments using a custom code snippet added to your theme’s functions.php file. Here’s a sample snippet:

function disable_comments_code() {
    // Disable comments on posts
    remove_post_type_support( 'post', 'comments' );
    // Disable comments on pages
    remove_post_type_support( 'page', 'comments' );
add_action( 'init', 'disable_comments_code' );

This snippet effectively silences the comment section on all posts and pages.


While using code offers flexibility, it requires a bit of technical know-how. If you’re not comfortable with coding, consider using a plugin instead. Additionally, always back up your site before making any code changes.

Method 7: Disable Comments on Attachments 📎

If you’re tired of unwanted comments cluttering up your media library, you can easily disable them on attachments like images and videos. Here’s how:

  1. Navigate to “Settings” > “Discussion.” It’s like the control panel for your comment settings.
  2. Uncheck “Allow comments on new attachments.” It’s like flipping a switch to “off.”
  3. Click “Save Changes.” And voila! No more comments on your precious photos and videos.

Why would you want to do this? Well, attachments are often used for display purposes, and comments on them can be distracting or irrelevant. By disabling comments on attachments, you can keep your media gallery clean and clutter-free. Plus, it saves you the hassle of moderating comments on non-essential content.

Method 8: Disable Comments on Categories and Tags 🗣️

If you’re looking to silence the chatter on specific categories or tags, WordPress has got you covered! This method lets you turn off comments for any category or tag you choose. It’s like having a “no-comment zone” for certain topics.

To do this, navigate to the “Posts” section in your dashboard. Click on “Categories” or “Tags” in the left sidebar. Select the category or tag you want to mute, then scroll down to the “Discussion” section. Uncheck the box labeled “Allow comments.” Voila! No more comments on that particular category or tag.

This method is perfect for topics that don’t warrant discussion, such as news articles or announcements. It’s also useful for categories or tags that receive a lot of spam or irrelevant comments. By disabling comments, you can keep your site clean and focused on the content that matters most.

Method 9: Disable Comments on Categories and Tags

🗣️ Silencing the Chatter on Categories and Tags

Categories and tags are organizational tools that help you sort and categorize your content. But sometimes, the comments on these pages can become overwhelming or irrelevant. That’s where this method comes in.

By disabling comments on categories and tags, you can keep the focus on the content itself, without the distractions of unnecessary discussions. It’s like creating a serene library where only the books speak.

To do this, navigate to the “Settings” section in your WordPress dashboard and select “Discussion.” Under the “Other Comment Settings” section, you’ll find the option to “Disable comments on new posts in specific categories.” Simply check the boxes next to the categories you want to silence.

Remember, this method only applies to new posts. If you want to disable comments on existing posts in specific categories, you’ll need to use a plugin or custom code.


Best Practices for Managing Comments in WordPress

Disabling comments can be a powerful tool for managing your WordPress site, but it’s not always the best solution. Here are some tips to help you make the right decision:

  • Consider your audience: If your site attracts a lot of engaged and respectful commenters, disabling comments could alienate them.
  • Monitor your comments: Keep an eye on your comments to identify any potential issues or spam. If you see a pattern of inappropriate or harmful comments, disabling comments may be necessary.
  • Use alternative methods: If you don’t want to disable comments completely, consider using alternative methods to manage them, such as:
    • Moderating comments: Approve or reject comments before they are published.
    • Using a spam filter: Block spam comments from being published.
    • Requiring user registration: Only allow registered users to comment.

Ultimately, the best way to manage comments on your WordPress site is to find a solution that works for you and your audience. By following these best practices, you can ensure that your site remains a welcoming and engaging space for everyone.

About David Damstra

Business Leader and Business Developer, Project Manager and Full Stack Developer & Designer Creative Director, Brand Guardian, Minister of Company Culture Co-Author of Professional WordPress. Currently in Third Edition. Seasoned web developer using practical technology to rapidly create standards compliant dynamic websites. Experienced with web development, software development and systems and network management and consulting.