How to Disable Comments in WordPress: COMPLETE Guide (6 PROVEN Methods 2026)

✍️ By Vikas Rohilla 📅 Updated: March 2026 ⏱️ 8 min read 🏷️ WordPress Tips

If you want to disable comments WordPress — whether to stop spam, clean up your site’s design, or simply because your business website does not need a comment section — WordPress gives you several ways to do it. The right method depends on whether you want to turn off comments on all pages, existing posts only, future posts only, or a specific page.

This guide covers every way to disable comments in WordPress — from a 30-second settings change to a complete site-wide removal including existing comments. No coding required for any method.

⚡ Fastest method: Go to WordPress Dashboard → Settings → Discussion → uncheck “Allow people to post comments on new posts” → scroll down and check “Automatically close comments on posts older than” → set the value to 0 → Save Changes. This disables comments on all existing and future content in under 60 seconds.
wordpress disable comments settings discussion page allow people to post comments checkbox
WordPress → Settings → Discussion — uncheck “Allow people to post comments on new posts” and set “Automatically close comments” to 0 days — the fastest way to disable comments in WordPress site-wide

Why Disable Comments in WordPress?

There are several completely valid reasons to disable comments in WordPress — and none of them mean your site is doing anything wrong:

  • Spam reduction: Comment spam is one of the most time-consuming maintenance tasks on any WordPress site. Even with Akismet active, moderating spam manually consumes hours every week. When you disable comments WordPress completely, the spam problem disappears entirely.
  • Business websites do not need them: Service pages, landing pages, portfolio sites, and company websites rarely benefit from public comments. A comment section on a professional services page can actually reduce credibility rather than build it.
  • Performance improvement: Comments load additional CSS, JavaScript, and database queries on every page. Sites that disable comments in WordPress typically see small but measurable improvements in page load speed and Core Web Vitals scores.
  • Security hardening: Comment forms are a common attack surface for bots. When you disable comments WordPress site-wide, you eliminate an entire category of potential security vulnerabilities.
  • PageSpeed improvement: Comment loading contributes to TTFB and LCP delays. Read Why TTFB Is Critical in 2026 — disabling comments directly reduces server response time.
  • Cleaner design: An empty comment section — or a “Comments are closed” message — at the bottom of every post looks unfinished. Removing it entirely creates a cleaner, more intentional design.
📖 Related: Disabling comments is part of a broader WordPress optimization and security strategy. Read WordPress Speed Optimization Guide and WordPress Security Guide for more ways to improve performance and reduce attack surface.

Which Method Should You Use?

Your SituationBest MethodTime
Turn off comments on all future postsMethod 1 — Settings → Discussion30 seconds
Turn off on ALL existing + future contentMethod 1 + set 0 days60 seconds
Turn off on many existing posts at onceMethod 2 — Bulk Edit2 minutes
Turn off on one specific post or pageMethod 3 — Post Editor1 minute
Complete removal including comment UIMethod 4 — Disable Comments Plugin5 minutes
Delete all existing comments tooMethod 4 + Method 510 minutes

Method 1: Disable Comments WordPress Site-Wide via Settings (Fastest)

This is the quickest way to disable comments WordPress across your entire site. It takes 60 seconds and requires no plugins or code. However, it only affects future posts by default — you need one additional step to also close comments on existing content.

  1. Go to WordPress Dashboard → Settings → Discussion
  2. Under Default post settings — uncheck “Allow people to post comments on new posts”
  3. Also uncheck “Allow link notifications from other blogs (pingbacks and trackbacks)”
  4. To also close comments on ALL existing posts — scroll down to Other comment settings → check “Automatically close comments on posts older than ___ days” → set the value to 0
  5. Click Save Changes
💡 The “0 days” trick: Setting “Automatically close comments on posts older than 0 days” is the most overlooked step when people try to disable comments in WordPress. Without it, all your existing posts still show open comment sections. With it, every post on your site — old and new — has comments closed immediately.

Method 2: Bulk Disable Comments on Existing Posts

If you want to disable comments in WordPress on your existing posts without affecting your Discussion Settings, Bulk Edit lets you select multiple posts at once and turn comments off for all of them simultaneously.

  1. Go to WordPress Dashboard → Posts → All Posts
  2. Click the checkbox at the top to select all posts on the current page
  3. From the Bulk Actions dropdown → select Edit → click Apply
  4. In the bulk edit panel that appears — find the Comments dropdown
  5. Change it from No Change to Do Not Allow
  6. Click Update
  7. Repeat for each page of posts — WordPress shows a limited number per page
wordpress posts bulk edit comments do not allow disable comments wordpress existing posts
WordPress → Posts → Bulk Edit → Comments → Do Not Allow — bulk disables comments on selected posts simultaneously, without needing to edit each post individually
⚠️ Do the same for Pages: Go to Pages → All Pages and repeat the same bulk edit process. WordPress Pages and Posts are managed separately — disabling comments on Posts does not automatically disable them on Pages.

Method 3: Disable Comments on a Single Post or Page

When you only need to disable comments in WordPress on one specific post or page — without changing your site-wide settings — use the Discussion panel inside the post editor.

  1. Open the post or page you want to edit in WordPress → Gutenberg editor
  2. Click the Settings icon (gear icon) in the top right corner
  3. Click the Post tab in the right sidebar
  4. Scroll down and click Discussion to expand it
  5. Uncheck Allow comments
  6. Click Update to save
wordpress gutenberg discussion panel allow comments uncheck disable comments single post
WordPress Gutenberg editor → Settings sidebar → Post → Discussion → uncheck Allow comments — disables comments on this specific post or page only, without affecting any other content on your site
💡 Can’t find the Discussion panel? Click the three-dot menu (⋮) in the top-right corner of the Gutenberg editor → Preferences → Panels tab → make sure Discussion is toggled on. It is sometimes hidden by default.

Method 4: Disable Comments WordPress Completely Using a Plugin

Methods 1-3 turn off the comment functionality — but they leave the comment section HTML in your theme’s code. Some themes still display a “Comments are closed” message or empty comment area even when comments are disabled. The Disable Comments plugin removes the entire comment system from your site — no traces, no empty sections, no pingback headers.

  1. Go to Plugins → Add New Plugin
  2. Search for “Disable Comments” → look for the plugin by WPDeveloper (red logo, 1M+ active installations)
  3. Click Install Now → Activate
  4. Go to Settings → Disable Comments
  5. Select “Everywhere” to disable comments site-wide on all post types
  6. Click Save Changes
disable comments plugin wordpress settings everywhere option complete site-wide removal
Disable Comments plugin → Settings → select “Everywhere” — completely removes the comment system from all post types, eliminating comment forms, “Comments are closed” messages, pingback headers, and comment feeds
✅ What the Disable Comments plugin removes: Comment forms on all pages and posts, pingback/trackback headers, comment RSS feeds, “Comments are closed” messages, the Recent Comments widget, and the Comments link in the admin menu. This is the most complete way to disable comments in WordPress without any remaining traces.
📖 Related: After disabling comments, you may also want to remove other unused features slowing your site down. Read Fix INP in WordPress and Fix LCP in WordPress — removing unused features like comments directly improves Core Web Vitals.

Method 5: Delete All Existing Comments

Disabling comments prevents new ones from being submitted — but all your existing comments remain in the database and may still display on your pages. To completely clean your site, delete existing comments after you disable comments in WordPress.

  1. Go to WordPress Dashboard → Comments
  2. Click the checkbox at the top to select all comments on the current page
  3. From the Bulk Actions dropdown → select Move to Trash → click Apply
  4. Go to Comments → Trash → click Empty Trash to permanently delete them
  5. Repeat for each page of comments until all are removed
wordpress comments admin bulk actions move to trash delete all existing comments disable comments
WordPress → Comments → select all → Bulk Actions → Move to Trash → Empty Trash — permanently deletes all existing comments after you disable comments in WordPress to fully clean your site
⚠️ Warning — this cannot be undone: Deleted comments are permanently removed from your database. Before deleting all comments, take a full site backup via Hostinger hPanel → Backups. If you later decide you want the comments back, you will need the backup — they cannot be recovered from WordPress itself once deleted.

Method 6: Disable Comments via Code (Advanced)

If you prefer not to use a plugin to disable comments WordPress-wide, you can add a small code snippet to your theme’s functions.php file. This achieves the same result as the Disable Comments plugin without an additional plugin installation.

// Disable comments on all post types add_action(‘admin_init’, function() { $post_types = get_post_types(); foreach ($post_types as $post_type) { if (post_type_supports($post_type, ‘comments’)) { remove_post_type_support($post_type, ‘comments’); remove_post_type_support($post_type, ‘trackbacks’); } } });// Close comments on front end add_filter(‘comments_open’, ‘__return_false’, 20, 2); add_filter(‘pings_open’, ‘__return_false’, 20, 2);// Hide existing comments add_filter(‘comments_array’, ‘__return_empty_array’, 10, 2);
⚠️ Use a child theme or WPCode: Never edit your parent theme’s functions.php directly — theme updates will overwrite your changes. Add this code via a child theme’s functions.php, or use the free WPCode plugin to add it safely without touching theme files.

Comparing All Methods — Which Is Best for You?

✅ Method 1 — Settings

Best for beginners. 60 seconds. No plugin. Does not remove comment HTML from theme. Set “0 days” trick to cover existing posts.

✅ Method 2 — Bulk Edit

Best for disabling comments on many existing posts selectively. No plugin. Requires doing Posts and Pages separately.

✅ Method 3 — Post Editor

Best for one specific post or page. No plugin. Takes 1 minute per post — not practical for many posts at once.

🏆 Method 4 — Plugin

Best complete solution. Removes entire comment system — no traces. Free, 1M+ installs, beginner-friendly.

Already on Hostinger? Enable LiteSpeed Object Cache

After you disable comments in WordPress, LiteSpeed Object Cache further speeds up your database queries. Available free in hPanel → WordPress → Manage → LiteSpeed Cache settings.

Get Hostinger →

Does Disabling Comments Hurt Your SEO?

This is the question most site owners ask before they disable comments in WordPress — and the answer is more nuanced than most guides suggest.

  • User-generated content is gone: Comments can add long-tail keyword variations and fresh content to your pages — both positive signals for SEO. Removing them removes this benefit. However, for most sites, the quality of comment content is low enough that this benefit is minimal.
  • Spam comments are actively harmful: Keyword-stuffed, low-quality spam comments hurt your pages’ relevance signals. When you disable comments WordPress site-wide, you eliminate spam content from your pages — which is an SEO improvement for most sites.
  • Page speed improves: Comments load CSS, JavaScript, and database queries. Removing them reduces page weight and improves Core Web Vitals — particularly LCP and INP on post pages. Faster pages rank better.
  • The honest answer: For business websites, landing pages, and sites without an active commenting community — disabling comments is neutral to positive for SEO. For blogs with genuine community discussions, losing those comments removes real SEO value.
🔍

Check Your SEO After Disabling Comments — ToolXray

Run a free audit after disabling comments — check Core Web Vitals, PageSpeed improvements and 80+ signals. Free, no signup.

Run Free Audit →
📖 Related: After disabling comments, check your full technical SEO status — Complete Technical SEO Audit Guide covers all 80+ signals including Core Web Vitals, crawlability, schema markup and more.

The Bottom Line

To disable comments in WordPress quickly: go to Settings → Discussion, uncheck the comments checkbox, set the automatic close to 0 days, and save. Done in 60 seconds — works on all existing and future content.

For a cleaner, more complete solution that removes the comment UI entirely from your theme — install the free Disable Comments plugin and select “Everywhere.” This is the recommended approach for business websites, portfolios, and any site where you want to disable comments wordpress-wide cleanly.

After you disable comments WordPress-wide, After you choose to disable comments wordpress-wide, consider running a technical audit to confirm the performance improvements in your Core Web Vitals scores — particularly on your highest-traffic pages where comment loading had the most impact.

🔍 Free WordPress Technical Audit

Check Core Web Vitals, PageSpeed improvements and 80+ signals after disabling comments

Run Free Audit at ToolXray →

Related Articles

🚀

WordPress Speed Optimization Guide

Disabling comments is one step — complete guide to 90+ PageSpeed scores.

Fix LCP in WordPress

Removing comments improves LCP — here is how to optimize it further.

🛡️

WordPress Security Guide

Comment forms are an attack surface — more security hardening tips here.

🔴

WordPress 404 Error Fix

After bulk-editing posts and pages, check for any permalink issues.

🔬

Complete Technical SEO Audit

Full audit after disabling comments — confirm performance improvements.

🔄

ERR_TOO_MANY_REDIRECTS Fix

After bulk-editing posts and changing settings, check for any redirect conflicts.

💀

WordPress White Screen of Death

If adding code to functions.php goes wrong — here is how to recover instantly.

WordPress Memory Limit Fix

Disabling comments frees memory — raise PHP memory for even better performance.

🆓

Free Alternative to Ahrefs

Monitor your site’s SEO health after the change — free tools, no subscription.

Frequently Asked Questions

❓ How do I disable comments in WordPress on all posts at once?
Go to WordPress → Settings → Discussion → uncheck “Allow people to post comments on new posts.” Then check “Automatically close comments on posts older than” and set the value to 0. Click Save Changes. This disables comments on all existing and future posts and pages in one step — the fastest way to disable comments in WordPress site-wide without any plugin.
❓ How do I disable comments in WordPress without a plugin?
Use Settings → Discussion to turn off comments on all new content (60 seconds). Use Bulk Edit (Posts → All Posts → select all → Edit → Comments → Do Not Allow) to disable on existing posts. Set “Automatically close comments on posts older than 0 days” to cover all existing content at once. For a code-based approach, add the filter snippets to functions.php via a child theme or WPCode plugin — but for most sites, the Settings + Bulk Edit combination is the fastest no-plugin solution to disable comments wordpress.
❓ Does disabling comments in WordPress affect SEO?
For most sites — neutral to positive. Disabling comments removes spam content (positive), improves page speed by eliminating comment CSS and JavaScript (positive for Core Web Vitals), and removes a potential security attack surface (positive). The only downside is losing user-generated content that may have contributed long-tail keywords — but this is only meaningful for sites with genuinely active, high-quality comment communities. Business websites, portfolios, and most WordPress blogs see no negative SEO impact when they disable comments in WordPress.
❓ How do I delete all existing comments after disabling them?
Go to WordPress → Comments → select all comments → Bulk Actions → Move to Trash → Apply. Then go to Comments → Trash → Empty Trash. Repeat for each page of comments until the Comments section shows zero. Take a full site backup before permanently deleting — the action cannot be undone from WordPress itself once comments are emptied from Trash.
❓ Why do my pages still show “Comments are closed” after I disable comments in WordPress?
The “Comments are closed” message is generated by your theme’s code — it shows when comments are disabled on a post but the theme still renders the comment section area. Changing Settings → Discussion or using Bulk Edit turns off comment functionality but does not remove the theme’s comment HTML. To completely remove the “Comments are closed” message, use the Disable Comments plugin (Method 4 above) — it hooks into WordPress at a deeper level and removes the entire comment UI from your theme’s output, eliminating all traces including the closed message.

    Leave a Comment

    Your email address will not be published. Required fields are marked *

    Scroll to Top