Using [gallery] for a product gallery (2 posts)

  1. scottsemple
    Posted 4 years ago #

    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"]'); ?>

    Any advice? Thanks!

  2. scottsemple
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic