WordPress.org

Ready to get started?Download WordPress

Forums

Turning Comments On Or Off (8 posts)

  1. timeistight
    Member
    Posted 9 years ago #

    I might be completely missing this, but I can't see any way to turn commenting or trackbacks on or off for all existing posts. I'm using 1.5 if that makes any difference.

    I'm going on vacation soon and I don't want to risk leaving spam up for two weeks until I get back.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Removing "wp-comments-post.php" and "wp-trackback.php" will prevent comment spam and trackback spam from getting into your blog.
    Do delete then while you are away - renaming them isn't a foolproof way.

  3. timeistight
    Member
    Posted 9 years ago #

    That's the only way? There's no toggle?

  4. There is a toggle, but it's cumbersome. The toggle will disable comments and trackbacks for future posts. As far as the past posts go, you'll have to edit each individually. It's easier to de-activate/re-activate that comments and trackbacks by deleting/uploading the wp-comments-post.php and wp-trackback.php files.

  5. timeistight
    Member
    Posted 9 years ago #

    That's a pretty ugly alternative: showing people a comment form and then giving them a 404 when they try to post.

    I guess I'll track down the comment-closing plugin I used to use. Didn't I read somewhere that there are plans to add that feature to the core progam?

  6. Kafkaesqui

    Posted 9 years ago #

    Could always do it the database query way:

    UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed';

    To return to normal:

    UPDATE wp_posts SET comment_status = 'open', ping_status = 'open';

    This of course assumes you want all posts open/closed.

  7. Just follow the instructions in the following thread to remove the comment links from your index.

    http://wordpress.org/support/topic.php?id=22389

  8. timeistight
    Member
    Posted 9 years ago #

    Thanks, Kafkaesqui. That looks like the best solution for me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.