Problem:
How to display fields of related posts in a many-to-many relationship that are connected by an intermediate post type?
Solution:
To traverse the relationship from one post type, via an intermediate post type, to a second post type, you need to first create a View which returns the intermediate posts that are children of the first post, and then in the Loop Output section of that View use the id attribute on the shortcodes to display fields from the connected posts.
Described more fully below: https://toolset.com/forums/topic/custom-search-results-displaying-content-from-two-cpt-combined-with-intermediary/#post-625181
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 3 replies, has 3 voices.
Last updated by 6 years, 8 months ago.
Assisted by: Nigel.