Uncheck comment status when specific category is checked
Put these codes into your theme's functions.php
<?php function disable_comment_status_when_specific_category_checked() { $cat = get_category_by_slug('info'); // Change 'info' to any category you want to disable comments. ?> <script type="text/javascript"> jQuery('#in-category-<?php echo $cat->term_id; ?>').click(function(){ if (jQuery(this).is(':checked')) { jQuery('#comment_status').attr('checked', false); } }); </script> <?php } add_action('admin_footer', 'disable_comment_status_when_specific_category_checked');