title: Exclude products with product shortocde Woocommerce
body: <p>I am trying to exclude products with shortcode but its not working</p>
  <p>here is what i am using shortocode</p>
  <pre><code>[products limit=&quot;14&quot; orderby=&quot;id&quot; columns=&quot;4&quot; order=&quot;DESC&quot; visibility=&quot;visible&quot; category=&quot;tcs&quot; cat_operator=&quot;NOT IN&quot;]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/sjkvP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sjkvP.png" alt="enter image description here" /></a></p>
  <p>I used php filter also</p>
  <pre><code>function phl_customize_product_shortcode( $args, $atts ) {
      
      if ( is_front_page() ) {
          $args['tax_query'] = array(
              array(
                  'taxonomy' =&gt; 'product_cat',
                  'field'    =&gt; 'name',
                  'terms'    =&gt; array( 'tcs' ),
                  'operator' =&gt; 'NOT IN'
              )
         );
  
      }
      return $args;
  }
  add_filter( 'woocommerce_shortcode_products_query', 'phl_customize_product_shortcode', 10, 2 );
  </code></pre>
  <p>But still not working</p>
  <p>here is site you can see</p>
  <pre><code>https://www.pottershouselimited.co.uk
  </code></pre>