Get WooCommerce Product using different type single product and multiple products
Get WooCommerce Product using a different type of single product with left side text and right side image, Right side image and left side image, and multiple products in grids. <?php add_shortcode("custom_product", "wps_soqopslider"); function wps_soqopslider($atts){ ?> <div class="vc_row wpb_row vc_inner vc_row-fluid hme-prduct"> <?php $args = [ "post_type" => "product", "posts_per_page" => 1, "p"=>$atts['product_id'], "tax_query" => [ [ "taxonomy" => "product_visibility", "field" => "name", "terms" => "featured", ], ], ]; $loop = new WP_Query($args); if ($loop->have_posts()) { ...