How to loop through all WooCommerce product images (featured and gallery)?
I want to create a custom product gallery, and I need to loop through all images (the featured image and attachment images). I need to create an array containing both the featured image and the attachment images. The output loop should look like this: foreach ( $images as $image_src_url ) { echo '<img src="' . $image_src_url . '">'; }
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.