Home › Forums › General Issues › Integrate ACF in a custom admin layout with dynamic content boxes › Reply To: Integrate ACF in a custom admin layout with dynamic content boxes
get_field() can take either the field name or the field key.
The difference is that with a repeater/flex field the inputs are in an nested array. You cannot use get_field(‘field_key’) on a sub field. You must loop over the repeater and use get_sub_field(‘field_key’). Without the loop ACF has no way of knowing exactly what field value to get.
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.