Hi - I have a site with two CPTs; ‘staff profiles’ and ‘research projects’. I have create an ACF relationship field attached to the staff profile CPT where they can associate themselves with one or more research projects. On the layout page for the research projects, I would like to list only those ‘staff profiles’ connected to that particular research project via the relationship field.
On the Research project layout, I have created a DIV which is both a provider and consumer via the Query Builder and displays all staff profiles. I can further access the relationship field using another DIV within the looper, outputting via dynamic content the value of the relationship field.
However, this full list appears on every ‘Research Network’ layout page, and I can’t work out how to only show those associated with current research network.
Is there a better way of doing this?