WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I imported hundreds of locations and other categories. Now I have a list of locations in categories to which I would like to assign the "Location" category as its parent.

I have tried sql but the structure is a bit too complex. And I looked around for a plugin but with no luck.

Thanks a lot for helping.

share|improve this question

The parent field in wp_term_taxonomy links a category with its parent category. Get the id of this "Location" parent category and update the wp_term_taxonomy for every location to link them with its parent one.

share|improve this answer

I found this plugin that is quite useful: http://wordpress.org/extend/plugins/term-management-tools for doing what you want to do.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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