Home › Forums › Add-ons › Repeater Field › Slideshow › Reply To: Slideshow
SO, I changed my code to this;
<div id="slide-window">
<?php if(get_field('gallery')): ?>
<div class="slidemargin">
<a href="#" id="close"><img src="http://localhost:8888/underdonk/wp-content/themes/underdonk/images/close.jpg" /></a>
<ul id="slider">
<?php while(has_sub_field('gallery')): ?>
<li><div class="slide-image"><img src="<?php the_sub_field('image'); ?>"alt=""/></div>, <div class="slide-info"><?php the_sub_field('title'); ?></div></li>
<?php endwhile;?>
</ul>
<a id="prev" href="#"><img src="http://localhost:8888/underdonk/wp-content/themes/underdonk/images/prev.jpg" /></a>
<a id="next" href="#"><img src="http://localhost:8888/underdonk/wp-content/themes/underdonk/images/next.jpg" /></a>
</div><!--.slidemargin -->
<?php endif; ?>
</div><!--#slide-window -->
And now the images pop up, but they are overlapped on each other, and when I click the next or prev button nothing happens. This is my java code in case;
$bx('#prev').click(function(){
slider.goToPreviousSlide();
return false;
});
$bx('#next').click(function(){
slider.goToNextSlide();
return false;
});
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.