Tell us what you are trying to do?
We are creating a custom post type (Trips) with a select field. I hope this select field can be prepopulated with data from another custom post type (Destination) so that we can select a Destination from the drop down list while adding a trip, and eventually display Destination data on the frontend Trips page (template and maybe in the archive page). Is it possible to achieve this with Relationships? If so, how do we achieve this?
Is there any documentation that you are following?
We have been following this documentation https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/ but did not understand it completely or it may not cover what we are trying to do?
Many thanks for your help,
Terry
Dear Terry,
I suggest you try with custom post reference field, see our document:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/using-post-reference-fields-to-display-information-from-a-related-post/
Toolset features a special custom field called Post Reference. You can use it to connect two posts. Once connected, when displaying one of these posts, you can display the data for the other related post.
Thank you, Luo, for your help!
Our destination data consists of Country, Region and Area. I have read and understood all of these fields can be displayed in a template or archive page.
Can all three fields also be displayed in a frontend form where authors can select Country, Region and Area? And would it be possible to make this conditional, for example Region A is only displayed when Country X is selected?
Would this work with post reference field? Or is this only working for relationships?
Many thanks again,
Terry
There isn't such kind of feature within Toolset Forms plugin, you can add a feature request for it, our developers will evaluate it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/