Skip Navigation

[Resolved] WP All Import data in custom post type and related custop post type

This thread is resolved. Here is a description of the problem and solution.

Problem:

Import post type relationships data with WP All Import plugin.

Solution:

WP All Import plugin supports Toolset relationship, but it requires another addon: WP All Import – Toolset Types Add-On

See details here:

https://toolset.com/forums/topic/wp-all-import-data-in-custom-post-type-and-related-custop-post-type/#post-1222166

Relevant Documentation:

https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/how-to-import-data-from-a-csv-file-using-the-wp-all-import-toolset-types-add-on-plugin/post-relationships/

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by roulartaM 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1221849
screenshot3.PNG
screenshot2.PNG
screenshot1.PNG

Hi there!

I have two custom post types:

- gemeentes (= cities), with a standard post field 'title' and a custom field 'postcode' (= zipcode)
- provincies (= provinces), with standard post field 'title'

Every city has one province and one province can have multiple cities (1 to many, see screenshot1.PNG). In WordPress, I've already created all possible Belgian provinces. See screenshot2.PNG.

Via WP All Import, I want to import a .csv-list with all Belgian cities and it's related provinces (see screenshot3.PNG). I found out how I can link the field 'zipcode' and the field 'name' to the corresponding fields, but I can't find how I can link the province field in the .csv-file to the province in the toolset relationship.

Any idea if I can solve this issue please? If not, it seems that I have to put the province in the cities table (what makes it a larger database ofcourse).

Thanks for your incoming answer!

Kind regards,
Sam Clauw

#1222166

Dear Sam,

Yes, WP All Import plugin supports Toolset relationship, but it requires another addon: WP All Import – Toolset Types Add-On
See our document:
https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/
section "Installing the plugins"

Then you can follow below document to import the relationships data

https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/how-to-import-data-from-a-csv-file-using-the-wp-all-import-toolset-types-add-on-plugin/post-relationships/
How to import posts from CSV files and maintain relationships when using the WP All Import – Toolset Types Add-On plugin

#1222237

My issue is resolved now. Thank you!