title: Display Most Popular Product Tags in WooCommerce sidebar widgets area
body: <p>I found this code (<a href="http://devotepress.com/faqs/display-popular-tags-wordpress" rel="nofollow noreferrer">http://devotepress.com/faqs/display-popular-tags-wordpress</a>) and I used the short code ([wpb_popular_tags]) but I do not see any result.</p>
  
  <p>How can I use this code for displaying most popular WooCommerce product tags?</p>
  
  <p>Here is their code:</p>
  
  <pre><code>function wpb_tag_cloud() {
      $tags = get_tags();
      $args = array(
          'smallest' =&gt; 10,
          'largest' =&gt; 22,
          'unit' =&gt; 'px',
          'number' =&gt; 10,
          'format' =&gt; 'flat',
          'separator' =&gt; " ",
          'orderby' =&gt; 'count',
          'order' =&gt; 'DESC',
          'show_count' =&gt; 1,
          'echo' =&gt; false
      );
  
      $tag_string = wp_generate_tag_cloud( $tags, $args );
  
      return $tag_string;
  }
  
  // Add a shortcode so that we can use it in widgets, posts, and pages
  add_shortcode('wpb_popular_tags', 'wpb_tag_cloud');
  
  // Enable shortcode execution in text widget
  add_filter ('widget_text', 'do_shortcode'); 
  </code></pre>