How To Turn Off Comments In WordPress | Stop Spam And Side Chatter

Disabling comments takes a couple of dashboard toggles, plus one cleanup pass so older posts are closed and stray comment areas don’t show up.

Comments can be useful on a blog. On a tech site, they can also turn into a nonstop stream of spam, link drops, and repeated “pls help” notes that never age well. If you’re done moderating, or you want pages to read cleanly like docs, turning comments off is a solid choice.

This walkthrough shows the clean way to shut comments down at the right scope: future posts, older posts in bulk, single pages, media attachment pages, and custom post types. You’ll also learn how to hide comment UI so visitors don’t see dead comment boxes or “comments are closed” clutter.

Pick The Scope Before You Flip Switches

WordPress stores comment settings in a few places. That’s why people turn comments off and still see a comment form on an older post. Start by choosing what you want closed, then match the method.

  • Future content: Stops comments on posts you publish from this point on.
  • Existing content: Closes comments on posts and pages that are already live.
  • Selected items: Keeps comments on some posts, closes them on others.
  • Everything plus the UI: Removes comment menus, widgets, and endpoints so fewer loose ends remain.

Also scan where comments appear on your site. You might have more than you think:

  • Post and page comments
  • Trackbacks and pingbacks (they show up as comment-like entries)
  • Media attachment comments (often forgotten, often abused)
  • Custom post type comments (products, docs, portfolios, knowledge base entries)

Turn Comments Off For New Posts Site-Wide

If your goal is “no comments going forward,” start in the Discussion settings. This changes the default for new posts and pages created after you save the setting. Older content keeps its current status until you change it.

  1. In your WordPress dashboard, go to SettingsDiscussion.
  2. Find the section that controls default settings for new articles.
  3. Uncheck the option that allows people to submit comments on new posts.
  4. If you don’t want trackbacks and pingbacks, also disable link notifications on new posts.
  5. Save changes.

WordPress documents these controls on the Settings Discussion Screen, along with related toggles like closing comments after a set number of days.

When This Method Is Enough

This is enough if your site is new, or if comments were never central to your content. It’s also a smart first move when you plan to close older content next, since it stops fresh comments while you clean up the backlog.

Small Detail That Trips People Up

Many site owners expect this setting to retroactively close comments everywhere. It won’t. WordPress treats old posts as their own records. Next you’ll close those in bulk.

How To Turn Off Comments In WordPress For Existing Content

Bulk Edit is the quickest built-in way to close comments on older posts and pages without touching code. It’s also reversible per post if you change your mind later.

Bulk Close Comments On Posts

  1. Go to PostsAll Posts.
  2. Select the posts you want to change. Use the checkbox at the top to select everything on the current screen.
  3. Open the Bulk actions menu, choose Edit, then click Apply.
  4. In the bulk editor, set Comments to Do not allow.
  5. Click Update.

Bulk Close Comments On Pages

Repeat the same steps under PagesAll Pages. Pages often have comments disabled by default, but it’s still worth checking, especially if you used a theme or builder that enabled them.

Make Bulk Edits Less Tedious On Large Sites

If you have hundreds of posts, Bulk Edit still works, but you’ll repeat it page by page. Use the Screen Options tab (top-right on the list screen) to show more items per page so you can close more at once. Keep the number reasonable so the list screen stays snappy.

Turn Comments Off On A Single Post Or Page

Sometimes you want comments on tutorials but not on landing pages, or you want to close comments on an older post that keeps getting spam. You can do that right in the editor.

Block Editor Steps

  1. Edit the post or page.
  2. Open the settings sidebar (gear icon).
  3. Find Discussion. If you don’t see it, enable the Discussion panel from the editor options.
  4. Turn off the setting that allows comments.
  5. Update or publish.

Classic Editor Steps

If you use the classic editor, the control is usually in the Discussion meta box. If the box isn’t visible, enable it from Screen Options at the top of the editor screen, then uncheck “Allow comments.”

Turning Off Comments In WordPress Across Your Whole Site

To fully close comments site-wide, you need two moves: set the default to off for new content, then bulk-close existing content. That combination stops the drip of new comments and shuts the door on older posts that still accept replies.

After you do both, test three URLs:

  • A brand new draft post (comments should be off by default)
  • An older post that used to accept replies (it should be closed)
  • A page (it should be closed, and ideally show no comment section at all)

If you still see a comment area on the front end, it’s usually a theme block that prints a wrapper even when comments are closed. You’ll fix that later in the theme cleanup section.

Custom Post Types Need Their Own Check

Many tech sites publish more than posts and pages. You might have docs, changelogs, products, or portfolios created by a plugin. These are custom post types, and they can carry comment capability too.

Ask yourself what comments would become on that content. A reference page often turns into a pile of one-off questions that go stale fast. If you still want reader feedback, a contact form or issue tracker link in a visible spot can work better than comments.

Sometimes Bulk Edit works for custom post types. Sometimes the plugin that created the post type controls the UI and hides comment settings. In those cases, you can remove comment capability with a small snippet in a child theme or a tiny site plugin.

Code Option For Developers

If you’re comfortable editing code, you can remove comment support from specific post types. Put a snippet in a child theme or a small site plugin so it survives theme updates:

add_action('init', function () {
  remove_post_type_support('post', 'comments');
  remove_post_type_support('page', 'comments');
  // Add custom post types here, like:
  // remove_post_type_support('docs', 'comments');
});

This doesn’t delete comment data. It removes the comment feature from the editing screen and stops WordPress from treating those post types as comment-enabled.

Table: Match Your Goal To The Right Method

Use this grid to pick the cleanest path for your setup, then follow the steps in the sections above.

What You Want Closed Best Method What Changes
All comments on future posts Settings → Discussion Default setting for new content only
Comments on many old posts Bulk Edit posts Updates comment status for selected posts
Comments on many pages Bulk Edit pages Closes comments on selected pages
Comments on one post or page Editor → Discussion panel Closes comments for that single item
Media attachment comments Remove attachment comment support Stops spam on attachment URLs
Trackbacks and pingbacks Disable link notifications Stops comment-like entries from other sites
Comment UI in wp-admin Hide menus and widgets Removes comment screens from daily workflow
Comment features for custom types Code or plugin settings Removes comment capability per post type

Shut Down Media Attachment Comments

Attachment pages are the sneaky source of “why are there comments here?” An image uploaded to the Media Library can have its own URL, and bots love them. If your theme exposes attachment URLs, close comments there too.

Two paths work well:

  • Use your comment shutdown settings plus a theme cleanup so attachment templates don’t show comment blocks.
  • Remove comment support from attachments via code, so the admin UI stops offering comment controls for attachments.

If you prefer code, extend the snippet shown earlier by adding remove_post_type_support('attachment', 'comments');. Then visit a few attachment URLs and confirm the comment form is gone.

Hide Comment Areas On The Front End

Closing comments blocks new replies, but some themes still print a comment header, a wrapper, or a “comments closed” line. That can look messy, and it wastes space.

Try these fixes in order:

  • Theme setting: Many themes have a toggle to hide comment areas on posts and pages.
  • Block themes: Open the template in the Site Editor and remove the Comments block.
  • Classic themes: Check templates like single.php and page.php for comments_template(). Removing that call removes the entire comment section.

After each change, test a post that used to show a comment area and confirm it’s gone on mobile and desktop.

Decide What To Do With Existing Comments

Turning comments off doesn’t remove comments that already exist. Many sites keep older comments as part of the record, even after closing new replies.

If your older comments are mostly spam, you can delete them:

  1. Go to Comments in the dashboard.
  2. Use filters to view spam, pending, or all comments.
  3. Select what you want removed, then use Bulk actions to trash or delete.

On large sites, deleting thousands of comments can stress the server. Take a backup first and delete in batches so you can stop if the dashboard slows down.

Trim Comment Feeds And Loose Ends

Even with comments closed, WordPress can still expose comment-related URLs, like comment feeds. Some themes also link to them in the footer. If you don’t need them, remove the links from your theme and confirm your caching layer isn’t serving older pages with comment blocks.

Two quick checks help:

  • Open the home page and a few posts, then view the page source and search for “comments” links.
  • Purge cache in your cache plugin, CDN, or host panel after you finish changes.

This keeps readers from landing on dead-end comment pages and helps your site feel consistent.

Table: Common Problems And Straight Fixes

If comments still pop up after you shut them down, it’s usually one of these causes.

What You See Why It Happens What To Do
New posts still have comment forms Default setting wasn’t saved Recheck Settings → Discussion, save, then test with a new draft
Old posts still accept comments Bulk Edit wasn’t applied to all posts Repeat Bulk Edit across list pages until every post is updated
Comment form is gone, but a banner shows Theme prints a comment wrapper Disable comment display in theme settings or remove the Comments block
Spam appears on image attachment URLs Attachments still allow comments Remove attachment comment support, then purge cache
Trackback entries show up as comments Link notifications are enabled Disable pingbacks and trackbacks in Discussion settings
Old comment blocks still show after changes Cached HTML is still being served Purge cache at the plugin, CDN, and host levels
A custom post type still shows comments Plugin enables comments on that post type Turn off comments in that plugin’s settings or remove post type support in code

Do A Fast Audit Before You Walk Away

Once you turn comments off, spend five minutes checking the places where comment settings can leak through:

  • Open a brand new draft post and confirm comments are off by default.
  • Open three older posts from different years and confirm they’re closed.
  • Open a page, an attachment URL, and a custom post type item if you have one.
  • Check the footer and sidebar for recent comment widgets or comment feed links, then remove them.

This tiny audit saves you from the awkward moment when a visitor finds one forgotten attachment page that still takes spam.

When Leaving Comments On Still Makes Sense

Some tech content does better with comments on. A troubleshooting post can collect edge cases, and a dev tutorial can get corrections. If you want that upside without the mess, tighten your rules:

  • Require account registration to comment.
  • Hold first-time comments for approval.
  • Auto-close comments after a set number of days on older posts.
  • Use an anti-spam plugin and keep it updated.

If you’re keeping comments on selected posts, close them on everything else, keep moderation strict, and don’t let spam pile up. A clean comment area beats a neglected one every time.

Checklist You Can Run In Ten Minutes

If you want a no-drama finish, run this checklist in one sitting:

  1. Disable comments for new posts in Discussion settings.
  2. Bulk close comments for all existing posts.
  3. Bulk close comments for all pages.
  4. Close attachments and any custom post types that don’t need replies.
  5. Hide comment blocks in your theme, then purge cache.

Once that’s done, your site reads cleaner, your moderation queue stays empty, and spam bots have one less door to knock on.

References & Sources