2-way relationship
-
Dear all,
I have 2 custom post types: Locations and Trainers. I am using ACF, CPT UI, Loops & Logic and Tangible.
I want both CPT to refer to each other dynamically: on a Single Page Location (Locations), there should be a list of links to the Single Pages of the Trainers teaching at the specific location.
What does this loop look like? Do I loop on the CPT Trainiers and then have to specify an attribute that sets the location name dynamically?
Preferably a change is made at 1 location, after which it is also changed at the other CPT. So: if a trainer is going to teach in Nijmegen as well as Velp, this only needs to be indicated at the CPT Trainer. On the Single Page of Nijmegen, this trainer will then automatically appear. Is this possible?
Hope you can help me!
The page I need help with: [log in to see the link]
- The topic ‘2-way relationship’ is closed to new replies.