How do i script the creation of my taxonomy terms - do people normally do this with features?

2 Answers 2


depends when you want to create them, in a new site or importing them into an existing one?

If you're building an install profile you could write an install script to create the taxonomy and terms as you need.

If you're trying to export/import into existing sites then it might be a bit harder.

features can't export taxonomy terms by itself because they have sequential ID values and so don't have a UUID that can be safely ported across sites.

that said, there are other modules out there helping to fix that problem - http://drupal.org/project/uuid is somewhere to start your research. Fair warning, you might have test a few patches for existing modules to get the solution you're after..


If you're importing a site from WordPress the wordpress_migration module will bring them in for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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