iKevinShah

iKevinShah

Disable comments across entire site in wordpress.


Posted by iKevinShah in Webmaster12 October, 2013

Sometimes, it might be a good idea to altogether disable wordpress comments in your site, just to stop useless / spammy users from degrading your website through non-sense comments / links.Wordpress allows us to allow / disallow people from commenting or discussing on articles posted on the site.

To disable the discussion from your site :

  1. Go to yoursite.com/wp-admin/options-discussion.php and uncheck the option of " Allow people to post comments on new articles " (as shown in the screenshot below).
    Disable comments across entire site in wordpress. After you have done this, the comments will be disabled, ONLY IN THE ARTICLES YOU POST HENCEFORTH.

  2. That, now requires us to disable comments on articles already published ! OKAY, two ways to do that.

  • Go to yoursite.com/wp-admin/edit.php and select all posts, SELECT ALL POSTS (CHECKBOXES) , click on EDIT and then disable the comments by selecting DO NOT ALLOW COMMENTS and then click update. Disable comments across entire site in wordpress.
  • Or else,we can also fire a SQL Query to disable the comments in existing articles and to do that there is no way through wp-admin panel, you need to LOG-IN to your "phpmyADMIN" or any other panel which allows you to fire SQL Queries to your database. Log in to the panel where you can execute SQL Queries and fire the SQL QUERY written below :

    UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed' WHERE comment_status = 'open';

Disable comments across entire site in wordpress.

Thats it, comments disabled across entire site.


  October 12, 2013, 5:43 am