How to disable Comments in Wordpress blogs for all posts?

by Eswar
9 replies
Hello warriors,
I am sick of spam comments received in all of my wordpress blogs. So i wish to disable comments in all of my posts in all blogs. But i dont know how to do it. Can anyone tell me how to do this?

Thanks
Eswar
#blogs #comments #disable #posts #wordpress
  • Profile picture of the author rbthanders
    Just go to Settings>Discussion> Uncheck "Allow people to comment on the article"
    {{ DiscussionBoard.errors[890551].message }}
  • Profile picture of the author innovator
    when you create a post, scroll down to the "discussion" palette and unchecked "allow comments on this post"..
    {{ DiscussionBoard.errors[890557].message }}
  • Profile picture of the author Kat Fuschillo
    I've been wondering how to do that. Those constant comments are getting soooo annoying.
    Thanks guys.
    Signature

    Need Killer content? Head to -www.KatFuschillo.com

    {{ DiscussionBoard.errors[890570].message }}
    • Profile picture of the author Eswar
      Thank you Guys,

      Just go to Settings>Discussion> Uncheck "Allow people to comment on the article"
      This idea works for the new posts in future. But still i have to edit the old posts to uncheck the " Allow comments on this post"

      Is there any other idea to change this settings at once for all old posts?

      Thanks
      Eswar
      {{ DiscussionBoard.errors[890599].message }}
  • Profile picture of the author bgmacaw
    My formula on my niche WordPress blogs is to use Akismet and moderate all comments. If a particular site gets hit hard with auto-spam I use a captcha plugin. This means that I never have to deal with spam comments while I can preserve good, legit, comments that provide SEO benefits from updated content and additional keywords.

    However, if you want to disable comments entirely, the best way is to edit the theme's single.php (assuming it's following the standard WordPress design) and remove the call to
    PHP Code:
    <?php comments_template(); ?>
    . This way no comment form will be shown at all.
    {{ DiscussionBoard.errors[890893].message }}
    • Profile picture of the author zulfnore
      Originally Posted by bgmacaw View Post

      My formula on my niche WordPress blogs is to use Akismet and moderate all comments. If a particular site gets hit hard with auto-spam I use a captcha plugin. This means that I never have to deal with spam comments while I can preserve good, legit, comments that provide SEO benefits from updated content and additional keywords.

      However, if you want to disable comments entirely, the best way is to edit the theme's single.php (assuming it's following the standard WordPress design) and remove the call to
      PHP Code:
      <?php comments_template(); ?>
      . This way no comment form will be shown at all.
      2nd that - but I wouldn't say remove it alltogether. Jus disable it by quoting it thus:
      PHP Code:
      <!--<?php comments_template(); ?>-->
      This way should you want to allow comments in the future all you do is remove the quotes and all will be back to normal.
      {{ DiscussionBoard.errors[890917].message }}
      • Profile picture of the author The Pension Guy
        Originally Posted by zulfnore View Post

        Jus disable it by quoting it thus:
        PHP Code:
        <!--<?php comments_template(); ?>-->
        This way should you want to allow comments in the future all you do is remove the quotes and all will be back to normal.
        If you really want to stop that PHP code from running you should rather comment it out in this way:

        PHP Code:
        <?php // comments_template(); ?>
        What you presented is the HTML comment out, which means it will not show up on the page but will be still running in the background and available for automatic spammer bots/scripts. If you use the PHP comment-out shown above it prevents the script from running.
        Signature

        {{ DiscussionBoard.errors[890945].message }}
        • Profile picture of the author zulfnore
          Originally Posted by The Pension Guy View Post

          If you really want to stop that PHP code from running you should rather comment it out in this way:

          PHP Code:
          <?php // comments_template(); ?>
          What you presented is the HTML comment out, which means it will not show up on the page but will be still running in the background and available for automatic spammer bots/scripts. If you use the PHP comment-out shown above it prevents the script from running.
          I stand corrected, The Pension Guy's commenting out is a better method
          {{ DiscussionBoard.errors[890963].message }}

Trending Topics