Hey Guys,
I am currently using this piece of code: "<?php echo do_shortcode('[gallery columns="5"]'); ?>" to display a post's gallery on the home page excerpts.
I wanted to know if there was any way to display the gallery ONLY if a gallery of pictures has been inserted into the post.
The way it works currently is it will display any pictures which has been inserted into a post on the home page, but i only want the pictures to be displayed IF a full gallery of pictures has been inserted into a post.
I.E, if [gallery] tag appears in the post.
Any advice will be very much appreciated.
Andrew