Home › Forums › ACF PRO › update_field with nested groups and repater fields. › Reply To: update_field with nested groups and repater fields.
I’m trying another approach but without luck…
if( have_rows( 'company', $post_id ) ):
while( have_rows('company', $post_id ) ) : the_row(); //group field
if( have_rows('addresses') ):
while( have_rows('addresses') ) : the_row(); //repeater field
if( have_rows('address') ):
while( have_rows('address') ) : the_row(); //group field
update_sub_field( 'formatted_address', $geocode['formatted_address'] );
endwhile;
endif;
endwhile;
endif;
endwhile;
endif;
Any idea ?
Thanks
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.