Query to make all past posts approved for comments please - Wordpress

Discussion in 'WordPress' started by glenv, Oct 13, 2008.

  1. #1
    I want to allow people to comment on all past posts on my Wordpress site. However, up to thispoint the feature was turned off. Now that it is on though, this only will effect new posts going forward.

    I know there is a query that will convert all past posts to open for comments without approval.

    Anyone know it?

    Thanks
     
    glenv, Oct 13, 2008 IP
  2. WebSolutions86

    WebSolutions86 Peon

    Messages:
    434
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could do this by some sql query in phpmyadmin i guess, otherwise i don't think there is any way
     
    WebSolutions86, Oct 14, 2008 IP
  3. System0

    System0 Well-Known Member

    Messages:
    168
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Im not 100% sure what you mean. When you change the settings in the wordpress admin area so that comments do not need to be approved it affects all posts on your blog.
     
    System0, Oct 14, 2008 IP
  4. WebSolutions86

    WebSolutions86 Peon

    Messages:
    434
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    He has comments turned off on old posts.
     
    WebSolutions86, Oct 14, 2008 IP
  5. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can do this in PHPMyAdmin:

    1. Select "Wordpress" database.
    2. Select "wp_comments" in the left-hand menu.
    3. Click Search in the menu bar.
    4. Select "comment_approved" and press GO.
    5. Click Check All, and click the Change icon (little pencil).
    7. Change the "comment_approved" field from 0 to 1 to make all comments approved.

    Or if you would rather use a SQL command:

    1. Select "Wordpress" database.
    2. Select SQL from menu bar.
    3. Enter update wp_comments set comment_approved = 1
     
    Cash Nebula, Oct 14, 2008 IP