How to Disable Comments in WordPress
Disabling comments is a highly effective way to reduce spam and improve site security for static content.
Based on 12 community reports.
Linked sources: 2.
Known Issues
- Disabling comments globally may hide existing comments
- Media attachment pages may still allow comments if not specifically disabled
Community Q&A
How do I disable comments on all WordPress posts?
You can disable comments globally by going to Settings > Discussion and unchecking ‘Allow people to submit comments on new posts’.
Can I disable comments for specific pages only?
Yes, edit the specific page, look for the Discussion meta box, and uncheck ‘Allow comments’.
How do I remove comments from media attachment pages?
You can use a code snippet in your functions.php file or a dedicated plugin to disable comments on all media attachments.