Problem: I have 3 post types, "Provider", "Service", and "Hospital". I would like to be able to link all 3 post types in one relationship, so I can show which Services are provided by each Provider, at each Hospital location. How can I link one intermediary post type to all three post types?
Solution: It's not possible to create a relationship between three post types like this. Instead, the best approach is to use a custom checkboxes group field on the intermediary post type between two of the post types. For example, link Providers and Hospitals in an M2M relationship with an intermediary post type, and add a custom checkboxes group field to the intermediary post. Add one checkbox for each Service post, where the value equals the Service post ID. Then you can assign specific services to each Provider, in each Hospital.
Relevant Documentation:
https://toolset.com/documentation/post-relationships/
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-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 2 replies, has 2 voices.
Last updated by 5 years, 10 months ago.
Assisted by: Christian Cox.