{"id":112702,"date":"2019-11-10T21:47:07","date_gmt":"2019-11-10T21:47:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/disable-comments-selectively\/"},"modified":"2025-04-07T15:16:54","modified_gmt":"2025-04-07T15:16:54","slug":"disable-comments-selectively","status":"publish","type":"plugin","link":"https:\/\/ast.wordpress.org\/plugins\/disable-comments-selectively\/","author":2061015,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.16","stable_tag":"0.16","tested":"6.7.5","requires":"4.2","requires_php":"8.3","requires_plugins":null,"header_name":"Disable Comments Selectively","header_author":"Keith Drakard","header_description":"Selectively disable comments by post type, taxonomy or term. Go to Settings-><strong>Discussion<\/strong> to configure which posts won't show comments.","assets_banners_color":"","last_updated":"2025-04-07 15:16:54","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/drakard.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2212,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1":{"tag":"0.1","author":"keith_wp","date":"2019-11-10 21:48:39"},"0.13":{"tag":"0.13","author":"keith_wp","date":"2023-11-05 12:57:02"},"0.14":{"tag":"0.14","author":"keith_wp","date":"2023-11-05 12:58:48"},"0.15":{"tag":"0.15","author":"keith_wp","date":"2024-04-09 09:42:34"},"0.16":{"tag":"0.16","author":"keith_wp","date":"2025-04-07 15:16:54"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2991921,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2991921,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.13","0.14","0.15","0.16"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2991921,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Simple settings, at the end of your normal Discussion Settings page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[107,3711,14833,178427,5026],"plugin_category":[44],"plugin_contributors":[89145],"plugin_business_model":[],"class_list":["post-112702","plugin","type-plugin","status-publish","hentry","plugin_tags-comments","plugin_tags-disable","plugin_tags-disable-comments","plugin_tags-disable-media-comments","plugin_tags-remove-comments","plugin_category-discussion-and-community","plugin_contributors-keith_wp","plugin_committers-keith_wp"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/disable-comments-selectively\/assets\/icon-128x128.png?rev=2991921","icon_2x":"https:\/\/ps.w.org\/disable-comments-selectively\/assets\/icon-256x256.png?rev=2991921","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/disable-comments-selectively\/assets\/screenshot-1.jpg?rev=2991921","caption":"Simple settings, at the end of your normal Discussion Settings page."}],"raw_content":"<!--section=description-->\n<p>If you'd like to have some comments on your site, but don't want them on every kind of post, then this plugin is for you.<\/p>\n\n<p>Go to the Discussion Settings of your site and select which post types, taxonomies and\/or terms will automatically disable commenting, regardless of the individual post setting.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <strong>\/wp-content\/plugins\/disable-comments-selectively\/<\/strong> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Go to the Settings -&gt; Discussion page to configure the plugin, selecting which types, taxonomies and terms should be affected.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='comments%20are%20still%20in%20the%20admin%20area'><h3>Comments are still in the admin area<\/h3><\/dt>\n<dd><p>This plugin only affects the front end by design, so it will look like nothing has changed in the admin; eg. you'll still see old comments, the number of previous comments on a post in the little comment bubble, the \"allow comments\" checkbox, and even add comments from the post screen.<\/p>\n\n<p>But when looking at that same post from the front end, nobody will be able to view its comments nor make new ones.<\/p><\/dd>\n<dt id='i%20want%20to%20disable%20all%20the%20comments%21'><h3>I want to disable all the comments!<\/h3><\/dt>\n<dd><p>Better to install a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/disable-comments\/\">Disable Comments<\/a> which will remove them across the site, and hide them in the admin area too.<\/p><\/dd>\n<dt id='nothing%20happens'><h3>Nothing happens<\/h3><\/dt>\n<dd><p>Then the odds are that the theme you're using isn't following <a href=\"https:\/\/www.rayofsolaris.net\/blog\/2012\/how-to-check-if-comments-are-allowed-in-wordpress\/\">the usual WP methods for comments<\/a>. This plugin has been tested with all the default WP themes (from 2010 to 2023) and works as intended.<\/p><\/dd>\n<dt id='the%20rss%20feeds%20still%20show%20old%20comments'><h3>The RSS feeds still show old comments<\/h3><\/dt>\n<dd><p>It's probably because it's been cached, either by your browser or by WP itself. You can quickly <a href=\"https:\/\/www.wikihow.com\/Force-Refresh-in-Your-Internet-Browser\">force refresh<\/a> your browser to check that, but if it's been cached by WP then you'll need to clear that or wait for it to expire.<\/p><\/dd>\n<dt id='comment%20widgets'><h3>Comment Widgets<\/h3><\/dt>\n<dd><p>I've tested this with the default WP Recent Comments widget and it works fine, but I can't guarantee what happens with any of the hundred other comment widgets out there.<\/p>\n\n<p>If it uses the normal WP function calls for comments, it should be okay - if it's making custom database calls directly, then no.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h3>0.16<\/h3>\n\n<ul>\n<li>Fix: Stopped creating deprecated dynamic properties for PHP 8.3<\/li>\n<li>Tested with WP 6.7.2<\/li>\n<\/ul>\n\n<h3>0.15<\/h3>\n\n<ul>\n<li>Tested with WP 6.5, 6.4, 6.3.2 and the 2021, 2022 and 2023 themes<\/li>\n<\/ul>\n\n<h3>0.12<\/h3>\n\n<ul>\n<li>Tested with WP 5.3 and the new twentytwenty theme<\/li>\n<\/ul>\n\n<h3>0.11<\/h3>\n\n<ul>\n<li>Remembered to use wp_sprintf instead of concatenating multiple strings...<\/li>\n<\/ul>\n\n<h3>0.1<\/h3>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Choose which post types, taxonomies and\/or terms will have comments disabled.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/112702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=112702"}],"author":[{"embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/keith_wp"}],"wp:attachment":[{"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=112702"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=112702"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=112702"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=112702"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=112702"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ast.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=112702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}