0

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?

4

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:

  1. 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.

  2. 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
0

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.

  • 1
    item 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.