Dynamically populate an ACF Select field’s choices with CPT entries
What I am trying to achieve is a Select Box (or similar) of Locations (CPT) on a Team Member’s (CPT) page.
So when you add a Team member you can choose a location to ‘link’ them to.
I have tried to use a Relationship field and also a Post Object field. Both work fine but when I reference those fields in my Oxygen template, all I get is the Post ID or an html link (depending which I choose in the dynamic data option). I just want the name of the location to appear, not “309” etc.
Any ideas how to achieve this?
I am aware of Sridhar’s tutorial but it is premium members only tutorial and I don’t really want to pay $65/mth (AUD) for a code snippet… No offence intended
oxygen builder experts 55366 posts 0 comments