I am building an a Fine Art Photoblog (http://www.nicholasiversongallery.com/) and I would like to hard code the gallery code into the template using:
<?php echo do_shortcode('[gallery option1="value1"]'); ?>
The issue is that not all posts will have a gallery but all posts will have a post_thumbnail using the built-in WordPress thumb. Since the thumbnail is an attachment as well, it will create a Post_thumbnail AND an a gallery with just one image in it. What i would like to do is create a conditional element for the galley that if there is only 1 attachment, wordpress wont generate a gallery and if there is more then one, it will create a gallery.
Is there a way to do this or is there a better way. The site above I just manually inserted the galleries. I would like this to be an automated process.
Thanks in advance