We are currently on vacation until 13th May 2024, ticket responses maybe be longer than normal during this period, sorry for any inconvenience.

Importing Taxonomies as CSV

Closed

Import WP Pro Updated 2 months ago 2 Replies

Federico asked 2 months ago on February 29, 2024 at 5:38 pm

Hi, first congrats for your well-design import tool.

 

Now my question si about CSV import and dealing with Taxonomies.

I have a custom_postype “Product” with a custom ACF custom taxonomy, in my CSV file this is “customfield_categorytaxonomy”. How do I specify parent/child as a list, So I have an ACF WordPress product category that shows 

LLM (parent)

3B (child)

7B (child)

How do I enter parent + child as in [LLM, 3B]? what is the notation in a CSV column for this?

 

 

J

James replied Support Agent

2 months ago on March 1, 2024 at 9:28 am

Hi Federico,

When importing taxonomies onto a post type, under the "Show settings" button there should be an "enable hierarchy" dropdown, changing this to yes will display a hierarchy character that will default to ">" , and a field labeled "Hierarchy relationship" where you can choose to connect all terms to the imported post, or to conned just the last term.

Using the default herarchy character ">" , in your csv if you want to import a parent child relationship you csv column would be something like "LLM > 38, LLM > 7B" , this would be imported as:

|- LLM
|---- 38
|---- 7B

FL

Federico replied

2 months ago on March 2, 2024 at 2:41 pm

I am going to give that a go, that looks pretty straightforwaard. Thank you as always, Fede.