- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Gday, I’m trying to delete the code in my site to not allow comments to my blog posts. This is my site http://www.vigourdynamicfitness.com.au…..who knows how to do?
Found this: http://digwp.com/2010/08/wordpress-sql-comments/
Thanks but I’m confused by this…not sure where I would need to put this code:
UPDATE wp_posts SET comment_status = ‘closed’;
Which php file?
functions.php i guess
Or you can find your single.php file and take out the code for the comments.
I do three things to make sure they are all the way removed. First I go to the Wp settings and turn commenting off, then go to comments.php and remove everything from that file except the first comment. Then I search and remove everywhere is calls for the comments;
This is the string I search for: ” <php comments_popup_link “
Then there is no way for comments to ever show and there is no way anyone can try to comment. I would only do it this way if you are for sure you never want comments on your wp site, even int he future.