I have two content types.
- Doctor
- Location
Doctor has two entity reference fields. Both reference Location nodes.
- Primary Location
- Secondary Location
I need to create a view that appears on a Location node and shows all Doctors that reference the Location node via the Primary Location or Secondary Location fields.
This has turned out to be incredibly difficult.
I've create a contextual filter for Content: Primary Location and set Provide default value to Content ID from URL. This successfully filters the view to Doctors that reference the Location via the Primary Location field.
I now create a contextual filter for Content: Secondary Location and set Provide default value to Content ID from URL. I now have no results.
I can then delete the Content: Primary Location contextual filter and this successfully filters the view to Doctors that reference the Location via the Secondary Location field.
It appears I can't have both at the same time. Thanks for any help!