Home › Forums › Add-ons › Repeater Field › 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
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Great video about using ACF to power custom WordPress site builds 🙌 https://t.co/ZX7n1glzxt
— Advanced Custom Fields (@wp_acf) January 11, 2023
© 2023 Advanced Custom Fields.
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.