I need help please, with querying an ACF relationship field on a single CPT template.
Here’s the scenario:
I have two Custom Post Types (CPTs) - “Branches” and “Services”. These two CPTs are linked by an ACF relationship field, allowing me to choose which services are related to a branch and vice versa.
The “Services” CPT has a taxonomy called “Service Category”, which includes categories like Massages, Facials, Nail Care, etc. This structure allows me to group the service posts.
I’ve created a single template for the “Branches” post type. On this template, I aim to display the “Service Category” taxonomy and list the related services linked to a branch under the taxonomy.
The problem:
As depicted in the photo, the relationship loop is displaying, but it’s showing for all the taxonomies. The service posts were properly assigned to their respective taxonomy in the backend.
Thank you so much.
