Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

acf get sub field

if( have_rows('parent_field') ):
    while ( have_rows('parent_field') ) : the_row();
        $sub_value = get_sub_field('sub_field');
        // Do something...
    endwhile;
else :
    // no rows found
endif;
Source by www.advancedcustomfields.com #
 
PREVIOUS NEXT
Tagged: #acf #field
ADD COMMENT
Topic
Name
4+9 =