Mixed-up relationships. Relationship from one field to multiple fields?
-
I’m developing a site with similar needs as rossing, though instead of it being Podcast Series, Podcast Episodes, and Guests, mine is:
- Lesson Series (CPT)
- Lesson (CPT)
- Speaker (CPT)
Each CPT has multiple custom fields (that’s why they’re CPTs). On the frontend, I want to display:
- A Series Page for each series that lists the related lessons (along with multiple series speakers)
- A Lessons Page for each lesson that references the series it belongs to and the single speaker of that lesson
- A Speaker Page for each speaker that lists the series he/she has contributed to and lessons he/she has taught.
Here’s my dilemma…I want the Speaker CPT (Name –
speaker_name
) to be related to the Lesson CPT (Speaker –lesson_speaker'), but to do #3 above it seems that I also need it (
speaker_name) to be related to the Series CPT (Speaker -
series_speaker`).Is that right? If so, how can I associate the
speaker_name
in the Speaker CPT with the two other fields in the other two CPTs? Or is there an easier way?Needless to say, I’m a bit dizzy trying to wrap my head around this.
- The topic ‘Mixed-up relationships. Relationship from one field to multiple fields?’ is closed to new replies.