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
https://forums.phpfreaks.com/topic/272291-php-wordpress-gallery-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.