Rufusmedia
2/9/2015 - 10:01 PM

Includes ACF gallery onto page from options page

Includes ACF gallery onto page from options page

<?php 
$images = get_field('gallery', 'options');
if( $images ): ?>
    <div class="gallery-module">
        <?php foreach( $images as $image ): ?>
          <a href="<?php echo $image['url']; ?>">
            <img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
          </a>
        <?php endforeach; ?>
    </div><!-- end .gallery-module -->
<?php endif; ?>