Skip Navigation

[Resolved] Multiple relationships between two post types

This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#1244693

We are running an exhibition agenda website. We have custom post types "exhibition" and "venue". Right now, we have the exhibition as a child to venue, indicating both the location (address) of the exhibition as well as the organizing entity. This works ok for most of the exhibitions, but causes issues when the organizing institution and the location are not the same.

The "right" way imo would be to have a relationship "organizer" and a relationship "location", but as most of the time these two are the same for a certain exhibition or are interchangeable (a museum can once organize exhibition, and sometimes host exhibitions organized by someone else), both relationships would have to address the same custom post type (venue) but cover different roles.

How can I create such kinds of relationships relating to two different aspects of the same related post type?

I am thankful for any hint!

#1244910

Hello,

I assume we are talking about this case:
1) One "exhibition" post can connect to multiple "venue" posts
2) One "venue" post can connect to multiple "exhibition" posts
3) Each organizer can organize one "exhibition" in an "venue"

If it is, I suggest you try to setup many-to-many relationship between post types "exhibition" and "venue", and use an intermediate post type "organizer", see our document:
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/