Problem: I have a Form that edits a parent post type. This parent post type has two different child post types. I would like to show a single select field containing all the child posts from both post types, and allow Users to select one parent and one child to associate with one another.
Solution: There's nothing exactly like this built in to Forms. You might be able to achieve something similar with custom code. Use a View to populate a generic select field with parent posts. Use another View to populate a generic select field with child posts from both post types. Then use the PHP APIs to link the two posts programmatically.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts
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 15 replies, has 2 voices.
Last updated by 5 years, 3 months ago.
Assisted by: Christian Cox.