Display image gallery if more than 1 image
-
I’m using this code to display image gallery in posts:
<?php echo do_shortcode('[gallery link="attachment" columns="3"]'); ?>
How to display image gallery ONLY if the post has more than 1 image attached and hide this code if the post has only 1 image?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Display image gallery if more than 1 image’ is closed to new replies.