Skip Navigation

[Resolved] Bulk associate posts to parent post

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

Problem: I would like to be able to bulk-edit child posts and relate them all to the same parent post.

Solution: Unfortunately that feature is not available. You can use the Post Relationships API to do it in PHP or you can import those relationships in CSV format when you import other site content.

Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts
https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/

This support ticket is created 6 years, 3 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 antonioA 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1126859

Tell us what you are trying to do?

I have a relationship and need to bulk associate a child post to parent posts.
I only see the option to do this one by one and it takes sooooo looongg. Is there any hack that I can use to do this in bulk?
Please add the option to multi select the posts we want to connect a child / parent with. One by one is a pain.

#1127055

There's no hack that makes this easier in wp-admin, but you can use the Post Relationships API to do it in PHP or you can import those relationships in CSV format when you import other site content. We offer the toolset_connect_posts API to connect two existing posts programmatically:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts

I am available to help with that if needed. We also offer the ability to import post relationships when you import CSV content into your WP site. Documentation about that here: https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/

If you'd like to submit a feature request, please create a new ticket in the forum using the "suggest an improvement" option. That ticket will be evaluated by our developers, and they will decide if it's something we can implement.

#1128543

My issue is resolved now. Thank you!