Jump to content

Php Wordpress Gallery Help


graphicjay22

Recommended Posts

Hello all, i'm trying to get a slider to feature my images that are in a post. I currently have everything set up but I only have one li element that is showing all three images. I'd love to have three li elements each showing one image but I can't figure out how to automatically isolate each image. Any help would be greatly appreciated!

 

you can see the current state here:

http://mksgear.com/shop/test-product/

 

this is what my code looks like:

<ul class="slides">
<li class="slide">
<?php if ( has_post_thumbnail() ) : ?>
 <?php echo do_shortcode('[gallery option1="value1"]'); ?>

<?php else : ?>
 <img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
<?php endif; ?>
<!--<?php do_action('woocommerce_product_thumbnails'); ?>-->

</li>
</ul>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.