## How to get the first image gallery of a product in woocommerce in a loop

Question

I want to display a product with a product image and when visitor hovers over that image, it will change to the first image from the product gallery. I am using this code to display the image gallery, but it displays all the images from product gallery. I just want the 1 image.

  <?php do_action( 'woocommerce_product_thumbnails' ); ?>


Anybody know how to resolve this problem? Really appreciate any ideas.

Regards

0
5 years 2016-03-07T20:27:49-05:00 0 Answers 76 views 0