query->get_meta_query(); $tax_query = WC()->query->get_tax_query(); $tax_query[] = array( 'taxonomy' => 'product_visibility', 'field' => 'name', 'terms' => 'featured', 'operator' => 'IN', ); $args = array( 'post_type' => 'product', 'stock' => 1, 'posts_per_page' => 3, 'orderby' => 'date', 'order' => 'DESC', 'meta_query' => $meta_query, 'tax_query' => $tax_query, ); $loop = new WP_Query( $args ); if($loop->post_count > 0){ while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?>
post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo 'Placeholder'; ?>

get_price_html(); ?>
Sorry, no featured products to show.
Kindly Install or Activate the WooCommerce plugin.