{"id":10550,"date":"2022-02-17T16:00:00","date_gmt":"2022-02-17T22:00:00","guid":{"rendered":"https:\/\/getflywheel.com\/?p=10550"},"modified":"2026-01-22T10:46:11","modified_gmt":"2026-01-22T16:46:11","slug":"disable-comments-wordpress","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/","title":{"rendered":"How to Disable Comments in WordPress\u00ae"},"content":{"rendered":"\n<p>WordPress<sup>\u00ae<\/sup> is (obviously) an awesome solution for building websites. While some people still associate it with blogging, there are a many other ways you can build and customize a WordPress site. And if you\u2019re building a business site, a common change you\u2019ll probably want to make is to disable comments in WordPress.\u00a0\u00a0<\/p>\n\n\n\n<p>If you\u2019re setting up a blog, having comments turned on is great for engaging your site visitors! And WordPress makes it super easy because that feature is built into the CRM automatically. But if you\u2019re looking to utilize WordPress for your portfolio site or a client\u2019s business, you probably shouldn\u2019t allow comments on every page.<\/p>\n\n\n\n<p><strong>Luckily, it\u2019s pretty easy to halt the discussion, before and after it begins. Here are a few ways to disable comments in WordPress<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Why should you care about comments?\u00a0<\/h2>\n\n\n\n<p>Comments on a post or page may not seem like a major concern, but they can be. While they\u2019re great for engaging site visitors in discussion, it\u2019s important to make sure those discussions are happening in the right way in the right place. That\u2019s why you should always monitor comments (both good and bad!) on your pages and posts, or disable them altogether.&nbsp;<\/p>\n\n\n\n<p>Additionally, pingbacks, trackbacks, and spam comments can be really tedious to monitor. By disabling comments on the pages that don&#8217;t need them, you&#8217;ll cut down the amount of maintenance you need to do on your site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to disable comments for future posts<\/h2>\n\n\n\n<p>If you\u2019re just starting your WordPress site (or are tired of running into issues on new content), this step is helpful for disabling comments on new posts\/pages site wide.\u00a0\u00a0<\/p>\n\n\n\n<p>To do this, go to <strong>Settings<\/strong> &gt; <strong>Discussion<\/strong> on the left side panel of wp-admin. On this page, you\u2019ll find a bunch of options related to comments on your site.&nbsp;<\/p>\n\n\n\n<p>Uncheck the option that says \u201cAllow people to post comments on new articles\u201d and then click on the \u201cSave Changes\u201d button to store your settings.<\/p>\n\n\n\n<p>This will disable comments on all <em>future<\/em> posts. If you want to disable or remove comments on an <em>existing<\/em> post, see the next section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to disable comments on a single post or page<\/h2>\n\n\n\n<p>If you want some posts or pages on your site to have comments, but not others, you can easily disable comments on a case-by-case basis.&nbsp;<\/p>\n\n\n\n<p>I\u2019ll start with Pages. Head over to <strong>Pages <\/strong>&gt; <strong>All Pages<\/strong> on the left sidebar. Hover over the page you want to disable comments on and select <strong>Edit.<\/strong><\/p>\n\n\n\n<p>On the right-hand side in the Document settings, look for <strong>Discussion<\/strong> and un-select <strong>Allow comments.&nbsp;<\/strong><\/p>\n\n\n\n<p>Hit save, and then view the page. The comments section should now be hidden, regardless if you had previous comments there or not.&nbsp;<\/p>\n\n\n\n<p>The process is the same for posts. Just go to <strong>Posts &gt; All Posts<\/strong> on the left sidebar and follow the same steps as above.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to disable comments on multiple posts and pages<\/h2>\n\n\n\n<p>If you have multiple posts or pages that you want to disable comments on, you can actually <a href=\"https:\/\/en.support.wordpress.com\/enable-and-disable-comments-for-published-posts-and-pages\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">do that in bulk<\/a> instead of one at a time.&nbsp;<\/p>\n\n\n\n<p>Go to <strong>Posts <\/strong>&gt; <strong>All posts.<\/strong><\/p>\n\n\n\n<p>Select the checkbox for the posts you want to disable comments on. In the Bulk Actions dropdown at the top of the page, choose <strong>Edit <\/strong>and click on <strong>Apply.&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>Pro-tip: <\/strong>With this method, you can perform several actions in bulk, such as changing an author, the post status, format, etc.<\/p>\n\n\n\n<p>Select <strong>Do not allow <\/strong>from the Comments dropdown and click <strong>Update. <\/strong>This will disable comments for all selected posts, meaning no new comments can be made and any existing comments will be hidden.&nbsp;<\/p>\n\n\n\n<p>The same process applies for disabling comments on Pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to disable comments on media<\/h2>\n\n\n\n<p>If you\u2019re looking to disable comments on WordPress media pages, there are two ways to go about it:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can add a code snippet to your site<\/li>\n\n\n\n<li>You can use a WordPress plugin<\/li>\n<\/ol>\n\n\n\n<p><strong>Note:<\/strong> You should never make changes like this to your live site. We recommend using a staging site or local environment for proper testing. If you don\u2019t have one set up yet, <a href=\"https:\/\/wpengine.com\/local\/\" target=\"_blank\" rel=\"noreferrer noopener\">Local<\/a> is a free solution for Mac, Windows, and Linux machines.<\/p>\n\n\n\n<p>If you want to go the code route, simply paste the following snippet in your theme\u2019s functions.php file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function filter_media_comment_status( $open, $post_id ) {\n    $post = get_post( $post_id );\n    if( $post-&gt;post_type == 'attachment' ) {\n        return false;\n    }\n    return $open;\n}\nadd_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );<\/code><\/pre>\n\n\n\n<p>That will globally disable comments on all media files you upload to your WordPress site. Then, you\u2019ll never have to worry about it again!&nbsp;<\/p>\n\n\n\n<p>If you want to use a WordPress plugin, see the next section for a couple of recommendations.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to disable comments using a plugin<\/h2>\n\n\n\n<p>As you probably know, WordPress allows you to do most things manually or you can always install a plugin for more functionality!&nbsp;<\/p>\n\n\n\n<p>An awesome option for this scenario is <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/disable-comments\/\" target=\"_blank\" rel=\"noreferrer noopener\">Disable Comments<\/a>. This plugin gives you the ability to disable all comments, including any on past posts.<\/p>\n\n\n\n<p>Once you install Disable Comments, you\u2019ll see a new option in your Settings dropdown.<\/p>\n\n\n\n<p>Go to<strong> Settings<\/strong> &gt; <strong>Disable Comments.<\/strong><\/p>\n\n\n\n<p>Now you can quickly disable all comments on posts, pages, and media, including any past comments. If you\u2019re dealing with a large site with lots of posts and pages, this is a great solution to avoid manually editing every single page.<\/p>\n\n\n\n<p>Another great plugin option for disabling comments in WordPress is <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/comments-plus\/\" target=\"_blank\" rel=\"noreferrer noopener\">Disable Comments for Any Post Types by webcraftic<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Disabling comments can seem like a hassle, but WordPress makes it super easy to disable comments in different ways. No matter if you\u2019re disabling comments for your client\u2019s website or your own blog post, we hope this tutorial helps you in your WordPress journey!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u00ae is (obviously) an awesome solution for building websites. While some people still associate it with blogging, there are a many other ways you can build and customize a WordPress site. And if you\u2019re building a business site, a common change you\u2019ll probably want to make is to disable comments in WordPress.\u00a0\u00a0 If you\u2019re setting<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","resource-topic":[901],"resource-role":[896,899],"resource-type":[916],"class_list":["post-10550","resource","type-resource","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Disable Comments in WordPress<\/title>\n<meta name=\"description\" content=\"Feedback isn&#039;t always necessary. When you don&#039;t need outside input on a published article, here&#039;s how you can disable comments.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Disable Comments in WordPress\" \/>\n<meta property=\"og:description\" content=\"Feedback isn&#039;t always necessary. When you don&#039;t need outside input on a published article, here&#039;s how you can disable comments.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-22T16:46:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2024\/05\/WPE-IMG-Thumbnail-1200x630-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/\",\"name\":\"How to Disable Comments in WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2022-02-17T22:00:00+00:00\",\"dateModified\":\"2026-01-22T16:46:11+00:00\",\"description\":\"Feedback isn't always necessary. When you don't need outside input on a published article, here's how you can disable comments.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Disable Comments in WordPress\u00ae\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085\",\"name\":\"WP Engine\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"caption\":\"WP Engine\"},\"sameAs\":[\"https:\/\/wpengine.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Disable Comments in WordPress","description":"Feedback isn't always necessary. When you don't need outside input on a published article, here's how you can disable comments.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How to Disable Comments in WordPress","og_description":"Feedback isn't always necessary. When you don't need outside input on a published article, here's how you can disable comments.","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2026-01-22T16:46:11+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2024\/05\/WPE-IMG-Thumbnail-1200x630-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/","name":"How to Disable Comments in WordPress","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2022-02-17T22:00:00+00:00","dateModified":"2026-01-22T16:46:11+00:00","description":"Feedback isn't always necessary. When you don't need outside input on a published article, here's how you can disable comments.","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/disable-comments-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"How to Disable Comments in WordPress\u00ae"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085","name":"WP Engine","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","caption":"WP Engine"},"sameAs":["https:\/\/wpengine.com"]}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/themes\/wpengine-breakthrough\/images\/fallback\/default-grid-resource.jpg","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Developer, Site Owner","topic":"<strong>Topics:<\/strong> WordPress","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/10550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/1"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=10550"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=10550"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=10550"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=10550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}