{"id":1725,"date":"2006-10-03T20:54:25","date_gmt":"2006-10-03T15:24:25","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/"},"modified":"2026-10-12T19:07:01","modified_gmt":"2026-10-12T13:37:01","slug":"automatically-close-comments-in-wordpress-after-few-days","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/","title":{"rendered":"How to Automatically Close Comments in WordPress After X Days (2026)"},"content":{"rendered":"<p>A post gets a burst of comments, the discussion fades, and a year later someone revives an outdated thread that pops up in your recent comments. In 2006 the fix was a small Auto Shutoff Comments plugin that closed comments after 21 days. Today you can <strong>automatically close comments in WordPress<\/strong> with a built-in setting, no plugin needed.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-64773\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/automatically-close-comments-wordpress-1024x538.webp\" alt=\"Automatically close comments in WordPress\" width=\"1024\" height=\"538\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/automatically-close-comments-wordpress-1024x538.webp 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/automatically-close-comments-wordpress-300x158.webp 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/automatically-close-comments-wordpress-150x79.webp 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/automatically-close-comments-wordpress-768x403.webp 768w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/automatically-close-comments-wordpress.webp 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong>Quick answer:<\/strong> Go to <strong>Settings &gt; Discussion<\/strong>, tick &#8220;Automatically close comments on posts older than [14] days&#8221;, enter the number of days you want and click Save Changes. It applies to all existing and future posts instantly. To close comments on just one post, uncheck Allow comments in that post&#8217;s Discussion panel.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6afcaf73d9c33\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6afcaf73d9c33\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#Method_1_Built-in_Discussion_setting\" >Method 1: Built-in Discussion setting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#Method_2_Close_comments_on_a_single_post\" >Method 2: Close comments on a single post<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#Method_3_Bulk_edit\" >Method 3: Bulk edit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#Should_you_close_comments\" >Should you close comments?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#FAQ\" >FAQ<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#Does_closing_comments_delete_existing_comments\" >Does closing comments delete existing comments?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#Can_I_close_comments_on_pages_too\" >Can I close comments on pages too?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/10\/automatically-close-comments-in-wordpress-after-few-days\/#Does_the_auto-close_setting_affect_pingbacks\" >Does the auto-close setting affect pingbacks?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Method_1_Built-in_Discussion_setting\"><\/span>Method 1: Built-in Discussion setting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Open <strong>Settings &gt; Discussion<\/strong>.<\/li>\n<li>Under Other comment settings, tick <strong>Automatically close comments on posts older than<\/strong> and set the days (for example 30 or 90).<\/li>\n<li>Click <strong>Save Changes<\/strong>.<\/li>\n<\/ol>\n<p>Comments on older posts close immediately, and existing comments stay visible. Untick the box later to reopen them.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_2_Close_comments_on_a_single_post\"><\/span>Method 2: Close comments on a single post<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Edit the post and open the Settings sidebar.<\/li>\n<li>In the <strong>Discussion<\/strong> panel, turn off Allow comments.<\/li>\n<li>Update the post.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Method_3_Bulk_edit\"><\/span>Method 3: Bulk edit<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Posts &gt; All Posts, select posts, choose <strong>Edit<\/strong> from Bulk actions, set Comments to Do not allow and click Update. Useful for one category or a date range.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Should_you_close_comments\"><\/span>Should you close comments?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Pros:<\/strong> less spam on old posts and less moderation work.<\/li>\n<li><strong>Cons:<\/strong> evergreen guides lose useful questions and updates from readers.<\/li>\n<li>A long window (90-180 days) often balances both; keep comments open on popular how-to posts.<\/li>\n<\/ul>\n<p>Other ways to manage comments: <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/08\/moderate-wordpress-comments-quickly\/\">moderate comments quickly with keyboard shortcuts<\/a>, <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2014\/09\/4-best-wordpress-plugins-to-stop-comment-spam\/\">stop comment spam with plugins<\/a> and <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2021\/01\/lazy-load-comments-in-wordpress-blogs\/\">lazy load comments for speed<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Does_closing_comments_delete_existing_comments\"><\/span>Does closing comments delete existing comments?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. Old comments stay visible; only new ones are blocked.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_I_close_comments_on_pages_too\"><\/span>Can I close comments on pages too?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes, pages have the same Discussion setting in the editor.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Does_the_auto-close_setting_affect_pingbacks\"><\/span>Does the auto-close setting affect pingbacks?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>It applies to comments; turn off pingbacks separately under Discussion if you don&#8217;t want them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A post gets a burst of comments, the discussion fades, and a year later someone revives an outdated thread that&#8230;<\/p>\n","protected":false},"author":4,"featured_media":64773,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[17],"class_list":["post-1725","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/1725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=1725"}],"version-history":[{"count":1,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/1725\/revisions"}],"predecessor-version":[{"id":64774,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/1725\/revisions\/64774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/64773"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=1725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=1725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=1725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}