1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Categories without any posts

Discussion in 'Blogging' started by mitramarathi, Apr 25, 2016.

  1. mitramarathi

    mitramarathi BANNED BANNED

    Joined:
    Apr 13, 2016
    Messages:
    119
    Likes Received:
    6
    dear freindsI had autoblog with 3000 postsdeleted half of thembut orphan categories are taking tollI only want to delete category with zero postsplz help
     
  2. b1acky

    b1acky Newbie

    Joined:
    Jun 17, 2015
    Messages:
    47
    Likes Received:
    13
    If you are using wordpress you can check how many posts there is in each category in categories view.
     
  3. mitramarathi

    mitramarathi BANNED BANNED

    Joined:
    Apr 13, 2016
    Messages:
    119
    Likes Received:
    6
    I want todelete
    not check
     
  4. LockerWizPro

    LockerWizPro Jr. VIP Jr. VIP

    Joined:
    Aug 10, 2010
    Messages:
    143
    Likes Received:
    204
  5. Conor

    Conor Elite Member

    Joined:
    Nov 7, 2012
    Messages:
    3,577
    Likes Received:
    5,954
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    I hope your delete button works better than your spacebar.

    In any case, something like this should work, if you have access to the database:
    Code:
    DELETE FROM wp_term_taxonomy WHERE taxonomy = 'category' AND count = 0
     
    • Thanks Thanks x 2
    Last edited: Apr 25, 2016
  6. mitramarathi

    mitramarathi BANNED BANNED

    Joined:
    Apr 13, 2016
    Messages:
    119
    Likes Received:
    6
    u want me to press delete button thousand times?
     
  7. clevelandslim

    clevelandslim Jr. VIP Jr. VIP

    Joined:
    Nov 15, 2008
    Messages:
    1,917
    Likes Received:
    189
    You may prevent WP from displaying categories :
    In Admin, in the post editor screen within the Admin interface, use screen options to hide the category picker. And in your theme, remove category-related lines. This won't, technically, disable everything category-related from showing, but you and end users won't notice them.
     
  8. living2xl

    living2xl Jr. VIP Jr. VIP

    Joined:
    Dec 9, 2011
    Messages:
    1,617
    Likes Received:
    320
    Occupation:
    Sippin dat juice - Shout it louder!
    Location:
    Not sleeping!
    Home Page:
    You can delete manually. I know that its a time taking process.
    But you have to do it. I don't think there is any too available for it.
     
  9. mitramarathi

    mitramarathi BANNED BANNED

    Joined:
    Apr 13, 2016
    Messages:
    119
    Likes Received:
    6
    wp sweep worked fine
    also I did same using mysql in backend
     
  10. lostandfound86

    lostandfound86 Newbie

    Joined:
    Apr 16, 2016
    Messages:
    29
    Likes Received:
    5
    :smash: Absolutely right.
     
  11. mitramarathi

    mitramarathi BANNED BANNED

    Joined:
    Apr 13, 2016
    Messages:
    119
    Likes Received:
    6
    tahnks
    will try that sql query
     
  12. SEO Sicko

    SEO Sicko Power Member

    Joined:
    Oct 24, 2014
    Messages:
    778
    Likes Received:
    132
    Occupation:
    Digital marketer
    Home Page:
    If you are using an Wordpress means you have an option called Bulk edit feature where you can select all Uncategorized posts.
    It will automatically creates some category for your posts.If not you can use this above option.

    Try this out : Posts--> Categories and then select Delete.