Using [gallery] for a product gallery
I’m trying to use the gallery shortcode to create a product gallery on an e-commerce site.
What I’d like to do is have three custom fields (i.e. color1, color2, color3), that an admin can add images to and then have those colors appear in the template. I have tried the following in the template without success:
<div class="productImage twocol-one ac"> <?php echo do_shortcode('[gallery option1="color1" option2="color2" option3="color3"]'); ?> </div>
Any advice? Thanks!
- The topic ‘Using [gallery] for a product gallery’ is closed to new replies.