8, 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product', 'meta_query' => WC()->query->get_meta_query(), 'post__in' => array_merge( array( 0 ), wc_get_product_ids_on_sale() ) ); $products = new WP_Query( $query_args ); while($products->have_posts()){ $products->the_post(); woocommerce_get_template_part( 'home-content', 'product' ); } wp_reset_postdata(); ?>