Go Back   Internet Business Forums > Webmasters

Reply
 
Thread Tools Display Modes
Old 18-09-2007, 02:11 PM   #1 (permalink)
Business Guru
 
Brian Turner's Avatar
 
Join Date: Dec 2003
Location: Near Inverness, Highlands, Scotland
Posts: 7,671
Default Open/close comments in Wordpress with phpmyadmin

If you've enabled comments and found you only get spam (common) else disabled comments but get so much traffic users are complaining of not being able to comment, here's some handy code for you.

In most admin panels this is seriously easy.

For example, in CPanel, go to Databases, then PHPmyadmin.

Select the database.

Then click on SQL.

Then run the following code to close all comments:

Quote:
UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed' WHERE comment_status = 'open';
or run the following code to open all comments:

Quote:
UPDATE wp_posts SET comment_status = 'open', ping_status = 'open' WHERE comment_status = 'closed';
Simple and easy.
__________________
SEO specialist
Brian Turner is offline   Reply With Quote
Old 07-05-2008, 08:04 PM   #2 (permalink)
Business Guru
 
Brian Turner's Avatar
 
Join Date: Dec 2003
Location: Near Inverness, Highlands, Scotland
Posts: 7,671
Default Re: Open/close comments in Wordpress with phpmyadmin

Okay, just had to reference this again.
__________________
SEO specialist
Brian Turner is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 11:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.