Missing categories in WordPress can happen from accidental deletion, a database issue, or a migration error. Unlike posts, WordPress categories don’t have a built-in trash bin, so recovery generally means restoring from a backup, rebuilding the category manually, or digging into the database directly.
Check If the Category Is Just Hidden First
Before assuming a category is gone for good, confirm it’s actually missing rather than just filtered out of view.
- Go to Posts > Categories in your WordPress dashboard
- Check if a search filter or pagination setting is hiding it from the list
- Look at the posts that used to belong to it — they’re often reassigned to “Uncategorized” rather than deleted, which is a strong sign the category itself was removed
Restore From a Backup
This is the most reliable fix if you have a backup taken before the category disappeared.
- Log into your WordPress dashboard or hosting control panel
- Open your backup plugin (UpdraftPlus, BlogVault, BackupBuddy, Duplicator Pro, etc.) or your host’s backup tool
- Find a backup dated before the category went missing
- Restore just the database rather than the whole site, since category data lives there and this avoids rolling back unrelated changes
- Check Posts > Categories afterward to confirm it’s back, and verify posts are reassigned correctly
Keep in mind that restoring a backup reverts everything to that point in time, so any content or settings changed since then will be lost too.
Manually Recreate the Category
If no usable backup exists, rebuilding the category by hand is usually the fastest option.
- Go to Posts > Categories
- Click Add New Category
- Enter the same name, slug, and description the original category had, if you remember them
- Manually reassign the relevant posts back to the newly created category
This won’t restore any custom fields or metadata tied to the old category, but it does rebuild the basic structure and gets your content organized again.
Try Recovering From the Database
For those comfortable with more technical steps, the category data may still exist in your database even if it’s no longer visible in the dashboard.
- Access phpMyAdmin through your hosting control panel (commonly under cPanel)
- Open your WordPress database and locate the
wp_terms table, which stores categories, tags, and other taxonomy terms
- Search for the deleted category’s entry — if it was removed recently, it may still be present
- If found, you can manually reinsert or restore the entry to bring the category back
This approach carries risk if you’re unfamiliar with SQL, so back up your database before making any changes.
Preventing This in the Future
A few habits make category loss much less likely to catch you off guard:
- Set up regular automated backups through a plugin or your hosting provider
- Choose a meaningful default category in Settings > Writing so reassigned posts stay organized
- Double-check before deleting a category — renaming or hiding it is often safer than deleting outright
- Keep a written record of your category names, slugs, and hierarchy for quick reference if you ever need to rebuild
Join The Discussion
Losing a category can be a stressful surprise, especially on a site with a lot of organized content. Has this happened to you, and which recovery method ended up working — a backup restore, a manual rebuild, or a database dive? Share your experience, any close calls you’ve had, or questions about the process below — what would you tell someone dealing with this for the first time?