Home › Forums › General Issues › Getting labels of select field created by php › Reply To: Getting labels of select field created by php
Hi @locomo
There is a function called get_sub_field_object, however you need to use this within the has_sub_field loop
Currently, you cannot target a sub field directly by it’s key. This will be possible in v5 thanks to the new data structure!
Thanks
E
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.