The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Disable Comments and New Users (5 posts)

  1. theotheragentm
    Posted 10 years ago #

    I want to create a blog, where I have two authors/administrators and no one else can register. I can remove the links to register, but is there a way to disable new users completely in case someone knows the default Word Press setup structure? Also, is there a way I can disable comments completely so it doesn't even show that comments are disabled for a post?

    Thanks in advance for your help.

  2. MichaelH
    Posted 10 years ago #

    Administration > Options > General and uncheck Anyone can register

    Administration > Options > Discussion and uncheck Allow people to post comments on the article

    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!

  3. theotheragentm
    Posted 10 years ago #

    It still says, "Comments Off" at the bottom. Is there no way around this?

  4. xhale
    Posted 10 years ago #

    I just finished doing all that myself!

    Now that you've turned them off, you have to edit your theme template.

    Here's an example, if you're using Kubrick. Open up single.php and look at the code there and see how it different from mine:

    <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    <!-- Both comments and pings are currently closed. -->

    <?php } edit_post_link('Edit this entry.','',''); ?>



    <!-- <?php comments_template(); ?> -->

    <?php endwhile; else: ?>

    You'll see a number of places that I've commented out (<!-- xxx -->) and at least one place I deleted stuff entirely - I deleted the stuff right in front of "edit this post" but made sure to keep that in for my ease of use. I'm brand new at this, and if I had to do it over again, I wouldn't have deleted anything - I'd have commented them out too somehow, just in case I ever wanted that functionality back. :)

    There are other files in your theme you'll have to do the same thing for. While editing everything in the theme I had Safari open to edit the code in WP, Firefox open to view the site as a user not logged in, and my ftp program open so I could alter permissions as needed.

  5. peanut
    Posted 10 years ago #

    May wish to take a look at:
    How to Comment Out PHP Code

Topic Closed

This topic has been closed to new replies.

About this Topic