Home › Forums › Add-ons › Gallery Field › Jetpack carousel for gallery field › Reply To: Jetpack carousel for gallery field
Hello John,
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!
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.