Home › Forums › General Issues › Getting labels of select field created by php › Reply To: Getting labels of select field created by php
ok thanks .. my issue was that I was trying to use “get_field_object” to access a sub field of a repeater
is it possible to directly access a sub field of a repeater with its key?
i was able to get to the field i needed without looping through all of the sub_fields like this but i’d rather use the api if there is a cleaner way:
$payment_object[‘sub_fields’][0]
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.