Support

Account

Home Forums Add-ons Repeater Field Convert raw repeater data back into an array Reply To: Convert raw repeater data back into an array

  • Thanks to ACF support’s help, this has been solved!

    
    acf_setup_meta( $block['attrs']['data'], acf_get_block_id( $block['attrs']['data'] ), true );
    get_field( 'filter_categories' );
    

    The true in the call to acf_setup_meta() means it’s replacing the main meta data, which you might not want to do if you still need to access it. You can do it this way to preserve it:

    
    $block_id = acf_get_block_id( $block['attrs']['data'] );
    acf_setup_meta( $block['attrs']['data'], $block_id );
    get_field( 'filter_categories', $block_id );