Support

Account

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:
    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.