'product', 'post_status' => 'publish', 'posts_per_page' => '-1', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $wg_cat ) ), 'meta_query' => array( array( 'key' => '_stock_status', 'value' => 'instock' ) ), ); $product = get_posts( $args ); } ?>
If you like this plugin, buy me a coffee and help support this plugin !