WordPress GuidePost → Undelete Category

Can you un-delete a WordPress category? No, but you CAN …

Apache HTTP Server — What is Apache Web Server Used for? Learn About Apache Server | Liquid Web

Deleted a category in WordPress and can’t find a way to get it back? You’re not alone. WordPress doesn’t give you a Trash option for categories the way it does for posts or pages. 

But that doesn’t mean you’re stuck. Let’s walk through what happens when a category is deleted and how to recover your content—even if the category itself is gone for good.

Why WordPress categories can’t be undeleted

WordPress treats categories differently from posts and pages when it comes to deletion. Here’s why you can’t just click an “Undo” button or restore them from the trash.

Deletion is permanent

When you delete a category, WordPress removes it entirely from your database. Unlike posts or pages, which go into the Trash and can be restored within 30 days, deleted categories are not stored anywhere in WordPress. Once deleted, they’re immediately erased.

The database entry is gone

WordPress saves all categories as terms in the database. When a category is deleted, its corresponding term entry is removed. Any posts that were assigned to that category aren’t deleted, but they lose their category association and get moved to the default category—usually “Uncategorized.”

What happens to posts in a deleted category?

If you delete a category, WordPress automatically reassigns any posts in that category to the default one. By default, that’s “Uncategorized,” but you can change it in Settings > Writing if you’d rather use a different fallback.

The important thing to know is that the posts themselves are still safe. Their titles, content, media, tags, and even custom fields are unaffected. Only their category association is lost.

How to recover a deleted WordPress category

You can’t bring the exact category back with a single click, but there are two solid workarounds depending on your setup: restoring from a backup or recreating it manually.

Option 1: Restore your site from a backup

If you have a backup from before the category was deleted, you can restore that backup to recover the category and all its post assignments.

Be aware that restoring a backup will also roll back any other changes made to your posts, settings, or users since that backup was created.

Option 2: Recreate the category manually

If you don’t have a usable backup, your best option is to manually recreate the category.

This doesn’t restore the old category’s metadata (like custom fields, if you used them), but it recreates the structure and keeps your content organized.

Important tips for avoiding future data loss

It’s easy to delete a category without realizing the consequences. Here are a few tips to prevent problems down the road.

Ready to get started?

Get the fastest, most secure WordPress.org hosting on the market.