Skip Navigation

[Resolved] Import posts for many-to-many relationships with fields attached

This support ticket is created 3 years, 5 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 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2119475

Hi

I need to import data for many-to-many relationships with fields attached to the relationship.

I've 2 custom post types:
- "Utenti"
- "Praticanti"

Where 1 "Utente" can have many "Praticante" and 1 "Praticante" can be associated to many "Utenti".
In the relationship I've 2 fields:
- "Data Inizio"
- "Data Fine"

I've an .cvs (or excel) file where I've:
- the POST_ID of the "Utente"
- the POST_ID of the "Praticante"
- "Data inizio" as date in unix timestamp format
- "Data fine" as date in unix timestamp format

I've read here but it doesn't help:
https://toolset.com/course-lesson/import-posts-from-csv-with-relationships-using-wp-all-import/

Can you help me?

Regards
Alex

(If it helps in wordpress I've installed WP-ALL-IMPORT PRO.)

#2119691

Hello,

Yes, you are referring correct document.

Two things need to pay attention to:
1) You need to install two plugins:
- WP All Import – freemium
- WP All Import – Toolset Add-on – premium
https://toolset.com/course-lesson/import-posts-from-csv-with-relationships-using-wp-all-import/#what-to-install

2) See section "Example #3 – many-to-many relationships" of above document:
https://toolset.com/course-lesson/import-posts-from-csv-with-relationships-using-wp-all-import/#example-3-many-to-many-relationships

In the second csv file, it needs to add multiple columns "Event 1" + "Event 2"... each grid value should be the title of related post title, see screenshot:
https://toolset.com/wp-content/uploads/2018/09/artis-cvs-rel.png