How to disable comments on pages And articles in wordpressTemporarily or permanently, there are many reasons for wanting to close the comments on an entire WordPress site. This tutorial will teach you how to disable one or more types of content, without using a plugin.
In a functions.php file of your theme, paste the following lines:
On line 4, specify the type of content that you want to disable comments: Post for articles page for traditional pages or custom post types.
Back up and verify that all comments are now closed.
If you prefer to disable throughout your site, then remove the line with the condition indicated by the If.
How to better secure your wordpress blog ?
Wordpress Seo Techniques For Beginner Bloggers
Disable comments on pages / articles In WordPress default Reviewed by Blogging Chimp on March 20, 2015 Rating: