Support

Account

Home Forums Add-ons Repeater Field Generate XML using sub_fields recursively Reply To: Generate XML using sub_fields recursively

  • Hi @bart-gopnik

    The numbers you saw is the index of the repeater row. It’s there to group the rows to avoid confusion while processing it (imagine you have multiple fields in a single row).

    If you want to get rid the index numbers and you want to have numbers as the subfield name, then you need another method to do that. Unfortunately, this is more related to PHP instead of ACF. Kindly get in touch with PHP community for further support.

    Also, yes, It seems I missed the exclamation point. The correct code is !is_numeric($k). I’m sorry about that.

    I hope this makes sense 🙂