Home › Forums › ACF PRO › How to set flex slider speen with ACF? › Reply To: How to set flex slider speen with ACF?
Solved it with this: slideshowSpeed: [ “<?php the_field(‘set_carousel_speed’, ‘option’); ?>”]
The complete code:
// Initialize Slider
function agencyclix_slider_initialize() { ?>
<script type="text/javascript" charset="utf-8">
jQuery(window).load(function() {
jQuery('.flexslider').flexslider({
animation: "slide",
animationLoop: true,
itemWidth: 283,
itemMargin: 0,
minItems: 1,
maxItems: 4,
move: 1,
touch: true,
pauseOnHover: true,
slideshowSpeed: [ "<?php the_field('set_carousel_speed', 'option'); ?>"]
});
});
</script>
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.