Support

Account

Home Forums Add-ons Repeater Field Repeater Field with Revolution Slider

Unread

Repeater Field with Revolution Slider

  • Hi guys,

    I can not make the repeater-field display the values on the front end. I’m using Revolution Slider. See my code below:

    <section class="main-slider" data-start-height="800" data-slide-overlay="yes">
        
        <div class="tp-banner-container">
            <div class="tp-banner">
                
                <ul>
    
                    <?php if (have_rows('config_slider')) : while(have_rows('config_slider')) : the_row();
                        $image = get_sub_field('slider_image');
                        $title = get_sub_field('slider_title');
                        $tagline = get_sub_field('slider_tagline');
                    ?>
    
                    <li data-transition="fade" data-slotamount="1" data-masterspeed="1000" data-saveperformance="off"  data-title="Awesome Title Here">
                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt'] ?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> 
                    
                    <div class="tp-caption sfl sfb tp-resizeme"
                        data-x="left" data-hoffset="15"
                        data-y="center" data-voffset="-80"
                        data-speed="1500"
                        data-start="500"
                        data-easing="easeOutExpo"
                        data-splitin="none"
                        data-splitout="none"
                        data-elementdelay="0.01"
                        data-endelementdelay="0.3"
                        data-endspeed="1200"
                        data-endeasing="Power4.easeIn">
                            <h2><?php echo $title; ?></h2>
                    </div>
                    
                    <div class="tp-caption sfl sfb tp-resizeme"
                        data-x="left" data-hoffset="15"
                        data-y="center" data-voffset="40"
                        data-speed="1500"
                        data-start="1000"
                        data-easing="easeOutExpo"
                        data-splitin="none"
                        data-splitout="none"
                        data-elementdelay="0.01"
                        data-endelementdelay="0.3"
                        data-endspeed="1200"
                        data-endeasing="Power4.easeIn">
    
                        <div class="text"><?php echo $tagline; ?></div>
    
                    </div>
                    
                    </li>
                    
                    <?php endwhile; endif ?>
    
                </ul>
                
                <div class="tp-bannertimer"></div>
            </div>
        </div>
    </section>

    Help me please.

    Thank you

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.