Bidirectional Relationship confusion!
-
Trying to set up a relationship between two CPTs and I am having a issue.
I have two pods:
Day
MenuA relationship field to the Day pod called menus – bidirectional field Days
A relationship field in the Menu pod called Days – bidirectional field MenusI can add a post called Monday and select multiple ‘Menu’ posts in the Menus field – however, when I look in any of the Menu posts that I added the Days field is empty.
I assumed that they would be auto-populated if I added the Menu post to the Day – or am I missing something?
Essentially what I want to achieve is to have a page called, for example Monday and have all the menu posts that are related to the ‘Monday’ Day CPT display.
It looks like I have to add the related field in BOTH Day and Menu posts – is it not possible to add it in either and have the relationship work?
Many thanks!
- The topic ‘Bidirectional Relationship confusion!’ is closed to new replies.