1) Get all Branch IDs of all hospitals, where Recommended = TRUE
2) Add all those IDs to an array
3) Remove duplicates from the array of Branch IDs
4) Query Branches with Post IDs in ( post__in ) your array
Am I understanding correctly?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users