title: If product category is empty display text (php shortcode) Woocommerce
body: <p>I want to show display a message when a product category has zero products.  I want to do this via shortcode please.</p>
  
  <p>I've tried searching StackOverflow and search engines for some codes to work off of but have been unsuccessful. </p>
  
  <pre><code>$category = get_queried_object();
  $theCount = $category-&gt;count;
  
  function farmdish_no_prod_msg_shortcode( $atts ) {
  
      $a = shortcode_atts(array('slug' =&gt; ''), $atts );
  
      if( ( is_product_category( '' . $a['slug'] . '' ) ) &amp;&amp; ( $theCount &gt; 0 ) ){
  
  
      }else {
          return '&lt;span&gt;No Products!&lt;/span&gt;';
      }
  
  }
  
  add_shortcode( 'no-prod-msg', 'farmdish_no_prod_msg_shortcode' );
  </code></pre>
  
  <p>I need to show a simple text message when there are zero products in a WooCommerce product category.  Thank your for any help!</p>