WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I loop the product images as a list?

Apparently, Woocommerce has two php files for this. One is for the featured product, and one is for the product thumbnails (product-image.php & product-thumbnails.php).
I'd like to put them on a single php file and loop the product images and make them appear in a li tag.

share|improve this question
Are you developing a plugin? Just saw, that you filed it under plugin-development, but the question sounds like customizing a theme. – kaiser Oct 4 '12 at 8:35

You're completely on the right track - have you had a look at those files? All the info is in there.

The images are wrapped in a <div> within product-image.php which you would change to a <ul>. Then wrap the featured image in a <li>. Then you would just wrap the thumbs within an <li> in product-thumbnails.php and that would be finito.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.