Support

Account

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.