Hi,
im not able to display flexible content from an options page. This is my code:
<?php if( have_rows('commissioned-overview_content', 'Commissoned-Overview' ) ):
while( have_rows('commissioned-overview_content', 'Commissoned-Overview' ) ) : the_row();
if( get_row_layout() == 'commissioned-overview_content_image_layout' ): ?>
<?php the_sub_field('commissioned-overview_content_link'); ?>
<?php endif;
endwhile;
endif;
?>
Any idea, what I am getting wrong?
Thanks
I fixed it, sorry. This worked for me:
<?php if( have_rows('commissioned-overview_content', 'option') ): ?>
<?php while( have_rows('commissioned-overview_content', 'option') ): the_row(); ?>
<?php the_sub_field('commissioned-overview_content_link'); ?>
<?php endwhile; ?>
<?php endif; ?>