Categories without any posts

mitramarathi

BANNED
Joined
Apr 13, 2016
Messages
119
Reaction score
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
 
If you are using wordpress you can check how many posts there is in each category in categories view.
 
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
 
Last edited:
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.
 
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.
 
wp sweep worked fine
also I did same using mysql in backend
 
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

:smash: Absolutely right.
 
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.
 
Back
Top