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 );
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.