Hi Trevor, thanks for the quick reply!
Unfortunately, at this moment it is not possible for me to show a live URL. I will describe my problem to the best of my understanding.
I have 2 custom post types: venues and events.
An event is related to a venue by the ACF “relational – post object”.
This is quite usefull for me because when adding an event, the poster doesn’t have to supply all the venue details, because those are related. Now this works very good, and on the single page of an event all the venue details are being pulled.
Now for the search form.
What I want is a search form that searches the events based on the field “event type” AND based on the location of the venue, say country and city.
Country and city are both fields that are linked to the venue and indirectly to the event.
I have created a search for which searches in the post types events and venues. I have added 3 search fields (post meta): event type, country and city.
The event type works as expected. Country and city do not. When I select an event type first, the country and city dropdown menu’s are empty. Which is not correct. The other way arount, when I select a country first the results are empty. Even though I know that country has events.
Hope this is a clear enough description. I know that a workaround can be to force the poster of an event to add the country and city, so that those are related to the event instead of the venue. This is not an ideal situation since it allows errors and is less efficient.