Home › Forums › Front-end Issues › Accessing Relationship Field Values Within Relationship › Reply To: Accessing Relationship Field Values Within Relationship
Perfect, that solved it! I think I had tried that before, but the important part I was missing was referencing the producer’s ID.
I had tried this:
$office_location = get_field('office_location');
When all I needed was to refer to the $p->ID within the loop like you suggested:
$office_location = get_field('office_location', $p->ID);
Thanks very much!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.