I have a custom post type created with Types called Assets.
Each asset is associated with a parent custom post type called Packs
And a child custom post type called Diagrams
I wish to import a large quantity of data into the Assets (easy enough following your post about importing data via csv)
However, how can I associate each asset with it's parent or child at the time of import using fields in the csv?
Or will I have to associate them individually after import?
Dear Andy,
When using Types posts relationships, we store the parent of a given type in a field _wpcf_belongs_{parent-slug}_id. Assume we are displaying a Car post type that usually has a parent Maker post type. Each Car will store its Maker id in the field _wpcf_belongs_maker_id.
You should use a column called "_wpcf_belongs_packs_id" (if packs is the slug of the Packs post type) in the CSV file. You should store the ID of the parent on this column.
Please let me know if you are satisfied with my answer and if I can help you with any other question which is related with this one.
Just what I needed. Thank you