ACF Image Array Gallery

<?php $image = get_sub_field('image_thumb'); $url = $image['url']; // medium $size = 'medium'; $medium = $image['sizes'][ $size ]; $width = $image['sizes'][ $size . '-width' ]; $height = $image['sizes'][ $size . '-height' ]; // thumbnail $size = 'thumbnail'; $thumb = $image['sizes'][ $size ]; $width = $image['sizes'][ $size . '-width' ]; $height = $image['sizes'][ $size . '-height' ]; ?> <img imgurl="<?php echo $url; ?>" class="pop-image " src="<?php echo $medium; ?>">
Creates a gallery with automatically generate thumbnails.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.