WordPress.org

Support

Support » Plugins and Hacks » Is there a way to block comments?

Is there a way to block comments?

Viewing 15 replies - 1 through 15 (of 16 total)
  • There will be many situations where you may want to remove comments. If you click on the Comments section, you will see a list of all comments. You can delete them, mark them as spam, etc..

    whooami

    @whooami

    Member

    you can turn off commenting completely — LOOK at the pages inside your wp-admin area, specifically all the tabs under options.

    Megagents, youve been here 4 weeks — surely its high time that you can do that 🙂

    Sorry, I’m still getting the hang of all of this, but you’re right, I need to experiment on my own to find out new stuff, thank you 🙂

    On second thought I can’t find anything that turns comments off. I change stuff around like getting an e-mail for each comment and stuff but nothing that blocks them 🙁

    I think this is how you’d do it (without hacking the template so that the comment stuff just doesn’t even appear).

    • Site Admin > Options > Discussion
    • Uncheck “Allow people to post comments on the article” (and probably “Allow link notifications …”)
    • Site Admin > Options > General
    • Uncheck “Anyone can register” and check “Users must be registered and logged in to comment”

    That’s good and all but there’s nothing that can just take them off?

    First do what Zach suggested

    at that point you will see “Comments are closed on this post” at the bottom of each post

    Next, you can edit your theme’s templates to remove the comment form completely. You would do this mainly in your Single Post Template and also possibly in index.php, category.php, maybe somewhere else.

    It does seem to me that a “Disable All Comments” setting (that does all of this for you) would be quite a nice feature to have somewhere in the Site Admin.

    (it might want to have a sub-feature of “Leave Current Comments Visible”)

    mrmist

    @mrmist

    Forum Janitor

    Options – Discussion – Allow people to comment (untick)

    You can then manually override that setting if you do want to allow comments on a particular post.

    Edit. Well, someone already said that up there, so obviously that’s not what you wanted. If you want to close all your existing comments, there is a pluging called “comment timeout” that will close your old comments automatically

    http://www.jamesmckay.net/code/comment-timeout/

    Actually it works, it says “Comments Off” now. Ok, I don’t want to be annoying but anyway I could scoot that off the page? Not that it’s in the way but I don’t need to know the comments are off because I already know.

    see above,
    Next, you can edit your theme’s templates to remove the comment form completely. You would do this mainly in your Single Post Template…

    Look for the call to comments_template(); in single.php and remove that. That will make it stop the comments display.

    Good instruction Otto42, that’s a more clear way to explain it, I just couldn’t think of the template tag name :/

    Guess what everyone, going to single.php worked like you said but guess what else? I went to the comments part of my theme and erased a part that has the display name for when comments are closed and now my post just have my article and that’s it, no mention of comments! I’m so happy, I wonder if I’m in a small minority of people who’ve done this… anyway thanks for your help and if anyone needs help on how to stop comments just ask me 🙂

    Nevermind this for the time being.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Is there a way to block comments?’ is closed to new replies.
Skip to toolbar