Home › Forums › Add-ons › Gallery Field › Jetpack carousel for gallery field › Reply To: Jetpack carousel for gallery field
Thank for your help, in fact it does work, but it isn’t exactly what I’m trying to achieve. I got this design:
Using this code:
<div class="container"> <div class="row"> <?php $images = get_field('fotografias_de_artista'); if( $images ): ?> <div class="col-sm-12"><h2 class="seccion">Fotos</h2></div> <?php foreach( $images as $image ): ?> <div class="col-sm-3"> <a href="<?php echo $image['url']; ?>"> <img src="<?php echo $image['sizes']['large']; ?>" class="img-responsive img-disco" alt="<?php echo $image['alt']; ?>" /> </a> <p><?php echo $image['caption']; ?></p> </div> <?php endforeach; ?> <?php endif; ?> </div><!-- #row --> </div><!-- #container -->
What I want is to have the Jetpack carousel for those pictures, but when I try using the code above (your post) it displays a mosaic gallery which I don’t know how to customize.
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!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.