Question

I'm tired of typing in lists of counries in my "Countries" taxonomies. What's a good way to bulk import a long list of terms into Wordpress ?

Was it helpful?

Solution

Put list in PHP array, loop through it, use wp_insert_term() on each.

OTHER TIPS

You may need to experiment with the WordPress Importer plugin. You may need to export the taxonomy list from one categorization, and then import it. Outside of that tool, the other way would be to import the list in csv format into your database. However, you will need to have the taxonomy list in csv format. I am not sure if you need to import the list of countries multiple times, but am assuming you do since you are "tired" of typing lists.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top