• Resolved cconser

    (@cconser)


    Good morning! After setting up a custom taxonomy called “Locations” for my WooCommerce site, I have spent a couple of hours tediously entering parent & child terms. With hours more to go on this project, I’m wondering if there is an easy way for a non-developer to bulk import the terms using a csv file instead. Perhaps a plug-in that plays nicely with CPTUI and WooCommerce?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good day @cconser.

    I will preface my reply here with if you do try it, please back up your database before proceeding.

    That said, the closest we have for built in functionality that could handle this would be registering a taxonomy with CPTUI using the “locations” taxonomy slug, and then rename it afterwards. You should see some UI about converting terms to the new slug, and we would do some queries for all existing terms and convert to the new taxonomy. Once done, confirm things are in the right allocation and post type(s).

    You would want to make sure the same taxonomy isn’t getting registered elsewhere like in your functions.php file or similar, so that we’re for sure getting the right terms associated with the taxonomy.

    kind of a tip/trick that could use a blog post

    Thread Starter cconser

    (@cconser)

    Thanks for the reply. I’m not certain how it addresses my situation, however, as you seem to be suggesting a method for duplicating my custom taxonomy rather than a way to quickly add many more terms to it. Or am I misreading your answer?

    Here’s my situation: A couple of days ago, I registered a taxonomy with CPTUI using the “locations” taxonomy slug. (See settings below.) Then, I started adding parent and child terms to the taxonomy by typing one at a time. Using this method, I entered a few hundred location terms. I have thousands more location terms to enter, but at this rate, it will take forever. Instead, I would prefer to import a csv file containing all the parent and child terms into my custom locations taxonomy. I’m okay with overwriting the terms I’ve already input or even deleting the taxonomy and starting over if that’s an issue.

    The settings for my Location Taxonomy:
    {“location”:{“name”:”location”,”label”:”Locations”,”singular_label”:”Location”,”description”:”This taxonomy will enable genealogists to filter products, media, posts and pages by location.”,”public”:”true”,”publicly_queryable”:”true”,”hierarchical”:”true”,”show_ui”:”true”,”show_in_menu”:”true”,”show_in_nav_menus”:”true”,”query_var”:”true”,”query_var_slug”:””,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”1″,”rewrite_hierarchical”:”1″,”show_admin_column”:”false”,”show_in_rest”:”false”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:”Locations”,”all_items”:”All Locations”,”edit_item”:”Edit Locations”,”view_item”:”View Location”,”update_item”:”Update Location Name”,”add_new_item”:”Add New Location”,”new_item_name”:”New Location Name”,”parent_item”:”Parent Location”,”parent_item_colon”:”Parent Location:”,”search_items”:”Search Locations”,”popular_items”:”Popular Locations”,”separate_items_with_commas”:”Separate Locations with Commas”,”add_or_remove_items”:”Add or Remove Locations”,”choose_from_most_used”:”Choose from the Most Used Locations”,”not_found”:”No Locations Found”,”no_terms”:”No Locations”,”items_list_navigation”:”Locations List Navigation”,”items_list”:”Locations List”},”meta_box_cb”:””,”object_types”:[“post”,”page”,”attachment”,”product”]}}

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Gotcha, my recommendation above was for if they were already terms in the WordPress website, but were under a different taxonomy. If they are simply not in the website at all yet, then my idea above does not apply.

    I don’t know offhand of any plugins tools that are for sure free that would work well. I haven’t done much for taxonomy term importing recently. I do know of https://www.wpallimport.com/ as a possible solution but it is a premium plugin as well.

    Thread Starter cconser

    (@cconser)

    Thanks, Michael. I will look into it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Import Taxonomy Terms’ is closed to new replies.