WordPress.org

Ready to get started?Download WordPress

Forums

Is there a way to block comments? (17 posts)

  1. Megagents
    Member
    Posted 6 years ago #

    I'm not really thinking about doing so but I wanted to know if I could.

  2. garryconn
    Member
    Posted 6 years ago #

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

  3. whooami
    Member
    Posted 6 years ago #

    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 :)

  4. Megagents
    Member
    Posted 6 years ago #

    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 :)

  5. Megagents
    Member
    Posted 6 years ago #

    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 :(

  6. Zachariah
    Member
    Posted 6 years ago #

    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"
  7. Megagents
    Member
    Posted 6 years ago #

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

  8. Dgold
    Member
    Posted 6 years ago #

    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.

  9. Zachariah
    Member
    Posted 6 years ago #

    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")

  10. mrmist
    Forum Janitor
    Posted 6 years ago #

    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/

  11. Megagents
    Member
    Posted 6 years ago #

    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.

  12. Dgold
    Member
    Posted 6 years ago #

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

  13. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

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

  14. Dgold
    Member
    Posted 6 years ago #

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

  15. Megagents
    Member
    Posted 6 years ago #

    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 :)

  16. Megagents
    Member
    Posted 6 years ago #

    Nevermind this for the time being.

  17. Megagents
    Member
    Posted 6 years ago #

    In my previous post I said nevermind because it didn't work. What is it about comments and shouldn't turning off comments be easy? It should be a standard option.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.