Support

Account

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>