• I would like to shut off the comment feature on my current posts but leave all the dated comments alone in my archive. I’ve tried using the plug-in shut off comments… but I do not want to shut off all my comments in my history. Is there a simple way to do this without removing the code in the main template file?

    in the future I’ll also like to make a feedback form. That would allow comments on a separate template. Has anyone seen or used a plug-in that worked rather like a
    guestbook versus the feedback sheet?

    thank you in advance for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try this MySQL query:

    UPDATE wp_posts SET comment_status="closed";

    Thread Starter chaz19

    (@chaz19)

    where should I put this query?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Do you have access to phpmyadmin or a similar MySQL interface which you can input queries with?

    <?php $wpdb->query(“UPDATE $wpdb->posts SET comment_status = ‘closed'”); ?>

    Thread Starter chaz19

    (@chaz19)

    I do have access to a PHP my admin interface… but there’s a lot of information and I don’t wanna screw anything up…how do I go about administering the query?

    beel– where would you suggest that I put this line of code. In my main template?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Put Beel’s query in a plain text file, call it nocomments.php and upload it to your WordPress directory. Then, access the file in your web browser.

    That sounds good, but you will have to also add:
    require(‘./wp-blog-header.php’);

    Since it is likely a one-time run and a risk to leave it without adding a $user_level to prevent anyone running it at a later date, I’d just put it into any WP file (index, footer, header, etc.), run it once, and then remove it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘stopping comments’ is closed to new replies.