Answers for "get product thumbnail woocommerce"

3

get product image woocommerce

// Use $post->ID to get from post object
$id = $loop->post->ID
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $id ), 'single-post-thumbnail' );

<img src="<?php echo $image[0]; ?>" data-id="<?php echo $id; ?>" />
Posted by: Guest on May-04-2020

Code answers related to "get product thumbnail woocommerce"

Code answers related to "Objective-C"

Browse Popular Code Answers by Language