Support

Account

Home Forums Add-ons Options Page Flexible Content from Options page

Helping

Flexible Content from Options page

    • nwde

    • December 6, 2019 at 6:07 am

    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

    • nwde

    • December 6, 2019 at 6:21 am

    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; ?>
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.