This example uses the Doctor And Location Example (DALE).
You don’t whant all locations for each Doctor only the selected?
This method can be applyed on posts that posess an ACF relation field.
Why dynamic? Because each individual Doctor can have different Locations. If ALL Doctors had the same Location the field would be “static” and then you wouldn’t need a relation field.
In the simple DALE we created the ACF group “Doctor Relation”, which we now want to use.
The image below shows the selection of the post “Doctor 03” of the Doctor post type.
In the Query 2 of the Doctors page we set the “Doctor Relation” as Included posts.
This will give us the actual selection of each doctors related Location.
If you have comments or questions to this topic please leave a reply. For other DALE related questions please visit the the DALE post.