1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to delete all posts under a selected category in Wordpress?

Discussion in 'WordPress' started by cool_dude, Feb 6, 2009.

  1. #1
    Hi,

    As the title says I want to how to delete all posts under a selected category in Wordpress?

    Don't say manually because it has well over 1000 posts.

    Please help!!
    Thanks in advance.
     
    cool_dude, Feb 6, 2009 IP
  2. HowToMakeMyBlog.com

    HowToMakeMyBlog.com Peon

    Messages:
    140
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Go into "posts" and chose "categories". Find the category you want to delete, check it and in the drop down menu chose delete and "apply". Should delete the whole category.
     
    HowToMakeMyBlog.com, Feb 6, 2009 IP
  3. Glottis

    Glottis Peon

    Messages:
    153
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not 100% sure, but the way you just described will just move all the posts of this category to "uncategorized".

    cool_dude, I'd try deleting them in phpmyadmin. I don't know what query string to use, but Google and you shall find. Backup your database first!
     
    Glottis, Feb 6, 2009 IP
  4. Houdy

    Houdy Peon

    Messages:
    267
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If using WP version 2.7: Go to Posts, Edit and filter the posts by the category. Select them all by ticking the check box on the top left, choose Delete with the Bulk Actions drop-down box and then the Apply button.

    If the post is in two different categories you will probably still delete it.
     
    Houdy, Feb 6, 2009 IP
  5. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,480
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #5
    Not sure but i have read it somewhere that if you want to delete all posts under specific category then you can do it through MYSql query.

    Don't forget to take a backup before doing this for your own safety.

    And btw wait till any other experts advice on this as i am not expert :p

    DON.
     
    deluxdon, Feb 6, 2009 IP