Recently somebody deleted from my blog a whole category by mistake and all the posts in that category (sports 2.500 posts) have been moved to uncategorized.

Is there any way to fix that?


There is no 'undo' option for this except reverting back to the most recent database export. That's seems like a no go for this since it's not 'crucial' (imo).

The quick fix I can think of is create a new category (with the same name etc.) and assign all posts to that category. The only thing you would have to check is that your code doesn't ask for a hardcoded ID of this category. If so, you need to change that (or make it dynamic).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.