Support

Account

Home Forums Add-ons Flexible Content Field Flex Content in Repeater Reply To: Flex Content in Repeater

  • This is what I have so far. Its not pulling in the content associate with the custom fields…

    <!--ORBIT SLIDE-->
    <?php
        if (have_rows('add_resorts_hero_image_slide', 'option')) {
            while (have_rows('add_resorts_hero_image_slide', 'option')) {
                the_row();
                
                $herovideo = the_sub_field('add_resorts_hero_slider_video');
                $heroimage = the_sub_field('add_resorts_hero_slider_image');
                    $heroimgsize = 'hero-image';
                    $heroimg_array = wp_get_attachment_image_src($heroimage, $heroimgsize);
                    $heroimg_url = $heroimg_array[0];
                
    
                if (have_rows('choose_resorts_hero_slider_content')) {
                    while (have_rows('choose_resorts_hero_slider_content')) {
                    the_row();
                
                        echo '<li class="orbit-slide">';
    
                        if( get_row_layout() == 'resorts_slider_video' )
    
                            echo $herovideo;
                            
                        elseif( get_row_layout() == 'resorts_slider_video')
                            echo '<img src="'.$heroimg_url.'" />';
                        
                        echo '</li>';
    
                    }
                } 
         }
    }
    
    ?>
    <!--END ORBIT SLIDE-->