function my_wc_products_shortcode() {
    $args = array(
        'post_type' => 'product',
        'posts_per_page' => 6
    );

    $loop = new WP_Query($args);
    ob_start();

    if ($loop->have_posts()) {
        woocommerce_product_loop_start();           // opens <ul class="products columns-…">
        while ($loop->have_posts()) : $loop->the_post();
            wc_get_template_part('content', 'product');
        endwhile;
        woocommerce_product_loop_end();             // closes </ul>
    }

    wp_reset_postdata();
    return ob_get_clean();
}
add_shortcode('my_products', 'my_wc_products_shortcode');
				
			
[my_products]