I've been on a wordpress hiatus for the past 8 months and have never had to deal with building a website for an actual client. Though, no matter what I tried/how I tried to disable comments, I would always get spammers commenting. What can I do to make sure that comments are really disabled... and what can I do if I want to enable them, but spam gets too much. In essence... what is the industry standard to deal with this?
-
1This plugin will do it handily. If you don't want to rely on an external plugin, I'd start by seeing how they do it. – Andrew Bartel Nov 30 '14 at 17:33
-
Plugin recommendations are off topic, see the help center. Still you can look through the plugins source that Andrew pointed you at. File an edit with what you have tried. – kaiser Nov 30 '14 at 17:37
-
3Please use the search prior to submitting your question, solution here: wordpress.stackexchange.com/a/120473/24875 – Christine Cooper♦ Nov 30 '14 at 18:02
-
possible duplicate of Completely disable comments – Christine Cooper♦ Nov 30 '14 at 18:03
-
@kaiser can the plugin recommendations tag be removed? – EGHDK Nov 30 '14 at 18:14
There is no need for a plugin. The reason people get this confused is because posts can have comments enabled or disabled on an individual basis. There is no "global" option, because it's per post.
So really, it just takes two main steps to disable comments in WordPress:
Settings > Discussion. Turn off both "Allow link notifications from other blogs (pingbacks and trackbacks)" and "Allow people to post comments on new articles". This will turn off comments and pings, by default, for all NEW posts. You can still turn them on when you make a new post, if you like, but they will default to off.
Go to every existing post (if any exist already) and turn off the "Allow Comments" and "Allow Pings" options on them.
For this second part, you can do this in bulk in the main Posts screen.
First, simply click the checkbox in the upper left hand corner of the post list, to select all the posts on the screen. Use the Screen Options dropdown in the upper right if you want to see more posts on the screen.
Second, change the "Bulk Actions" dropdown to "Edit" and click the "Apply" button.
Third, in the new bulk editor area that appears, set "Comments" and "Pings" to "Do Not Allow" and click the red "Update" button to set those settings for all the selected posts.
-
Thanks. I have comments disabled on all posts... I think its trackbacks or pingbacks that are hitting my site. – EGHDK Dec 17 '14 at 1:47
Upon your question, I think you want to totally disable comment from your website.
There are few ways to do it....
1. You can disable comment in your WordPress settings here...
Settings >> Discussion >> uncheck "Allow people to post comments on new articles"
2. You can use some plugins to do it like
https://wordpress.org/plugins/disable-comments/
3. You can remove the codes in your template file
The standard file name is single.php nad page.php. But your theme can have some custom templates. Just open your template file with a text editor and find this codes
<?php comments_template( '', true ); ?>
Remove it and the comment section will be totally removed from your website.
-
1item 3 will not disable comments, just the display of the comment form – Mark Kaplun Nov 30 '14 at 19:22
-
comments_template() actually placed here wp-includes/comment-template.php. It shows the comment form in a website. The question above just gave a perception that he just want to remove the comment system from his website. So removing the comment form can be a solution for this question. – WpMania.Net Dec 4 '14 at 0:20