Support

Account

Home Forums Gutenberg Add script with ACF fields to footer within custom block Reply To: Add script with ACF fields to footer within custom block

  • Try it like this:

    
    <script>
    (function(){
      var swiper = new Swiper(".swiper", {
          slidesPerView: <?php the_field('slides_per_view'); ?>
      });
    })();
    </script>