'product',
'posts_per_page' => get_theme_mod('forest_slider_count',10),
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'terms' => esc_html( get_theme_mod('forest_slider_cat',0) ),
'operator' => 'IN' // Possible values are 'IN', 'NOT IN', 'AND'.
)
)
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) :
$loop->the_post();
global $product;
if ( has_post_thumbnail() ) :
$image_data = wp_get_attachment_image_src( get_post_thumbnail_id( $loop->post->ID), 'shop_catalog' );
$image_url = $image_data[0];
endif;
if ($image_url != '') : ?>