Problem: I have post types Bus Stops and Bus Routes in a many-to-many relationship. On the Bus Route post, I want to display a list of related Bus Stops, ordered by a custom field on the relationship (intermediary post type).
Solution: In this case, the intermediary post type must be visible in wp-admin. Either choose that option when creating a new relationship, or enable the "show_ui" option in the post type editor screen Options panel. Then create a View of the intermediary post type, ordered by the custom field. In the Loop editor, display information from the related Bus Stop post as needed.
Relevant Documentation:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/
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 4 replies, has 2 voices.
Last updated by 5 years, 4 months ago.
Assisted by: Christian Cox.