crazyyy
5/29/2014 - 3:08 PM

WordPress: ACF: if have galley - display it

WordPress: ACF: if have galley - display it

<!-- if have gallery - display it -->
<?php if ( get_field('game_gallery') ) {  ?>
<div class="after-gallery">
	<?php 
		$image_ids = get_field('game_gallery', false, false);
		$shortcode = '
			[gallery ids="' . implode(',', $image_ids) . '"]
		';
		echo do_shortcode( $shortcode );
	?>
</div>
<?php } ?>
<!-- // if have gallery - display it -->