Support

Account

Home Forums Add-ons Flexible Content Field Flexible Slider Content Reply To: Flexible Slider Content

  • Ok, here’s what I’ve come up with for the code. Its completely breaking my page. Hmmmmm…any help would be very appreciated. Thanks!

    <?php
        if (have_rows('add_resorts_hero_image_slide')) {
            while (have_rows('add_resorts_hero_image_slide')) {
                the_row();
        
        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' ):
    
            	the_sub_field('add_resorts_hero_slider_video');
    
            elseif( get_row_layout() == 'resorts_slider_video' ): 
    
            	the_sub_field('add_resorts_hero_slider_image');
        
          } 
        }
       echo '</li>'
      } 
    }
    ?>