SQL Statement help re categories
-
The situation is as follows:-
I’ve recategorised my content which (for example) was like:-
– Local News
– International NewsInto more granular categories like:-
– News
— Local News
— International NewsThe only problem is of course that existing posts/content have category tags of (for example) “Local News” but are not currently also tagged into the parent category of “News” because of course it didn’t exist when the post was written.
Rather than going through my posts manually I’m assuming a smart SQL statement of some description against the appropriate WP database table would enable me to take all posts with the sub-categories and also tag them with the new parent.
Is this the smart/best way to do it?
Also – if so – what is the sql statement syntax that I would need to run against which table?
- The topic ‘SQL Statement help re categories’ is closed to new replies.