Skip Navigation

[Resolved] Import post relationship by CSV for existing post only

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

Problem: I would like to use CSV import to import post relationships between existing posts.

Solution: It's easier to do this with the Post Relationships API if the posts already exist. Instructions and code samples are available in this other ticket: https://toolset.com/forums/topic/bulk-assign-child-posts-to-parent-post/

This support ticket is created 5 years, 10 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by kelvinL-2 5 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1250155

Dear Sir/Madam,

I have the parent and child post already but not yet built the relationship, how can I build the post-relationship only by CSV import. I read the article https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/ but it seems the posts are newly importing into WP. Could you instruct me the CSV format? Do I need to have all parent and child posts' id included in the CSV?

I am developing the site within my private network, not yet published.

Best regards

Kelvin.

#1250419

It's easier to do this with the Post Relationships API if the posts already exist. Instructions and code samples are available in this other ticket: https://toolset.com/forums/topic/bulk-assign-child-posts-to-parent-post/

Let me know if you have questions about this approach.

#1257337

My issue is resolved now. Thank you!