I am having a problem displaying the content using ACF and flexible fields. I made a custom option page and I want to call the fields from the options page but everything is coming back blank when I try to get the values from the actual field.
This is my Code.
if( have_rows('season_title', 'option') ):
while ( have_rows('season_title', 'option') ) : the_row();
if( get_row_layout() == 'seasonal_title' ):
print_r(the_sub_field('s_title'));
endif;
endwhile;
else :
// no layouts found
endif;
This is the configuration on my field
Any ideas what im doing wrong?
if( get_row_layout() == 'seasonal_title' ):
. – Aibrean Jan 21 '16 at 20:24