title: woocommerce: join post and product category
body: <p>I'm working on a e-commerce website and I would like to know if it's possible to have the same category for posts and woocommerce products ? I would like to get both articles and products from specific category. I've tried this <a href="https://wordpress.org/support/topic/relating-a-post-to-a-product-category" rel="nofollow">https://wordpress.org/support/topic/relating-a-post-to-a-product-category</a> which make products categories appears in posts but I don't know how to display them in posts loop.</p>
  
  <pre><code>&lt;article &lt;?php post_class(); ?&gt;&gt;
    &lt;header&gt;    
      &lt;h2&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
  
      &lt;?php the_tags('&lt;ul class="entry-tags"&gt;&lt;li&gt;','&lt;/li&gt;&lt;li&gt;','&lt;/li&gt;&lt;/ul&gt;');
      the_category( ' ' ); ?&gt;
    &lt;/header&gt;
  
  &lt;div&gt;
     &lt;?php the_excerpt(); ?&gt;
      &lt;?php if ( has_post_thumbnail() ) { 
      the_post_thumbnail();
      } 
      ?&gt;
  &lt;/div&gt;
  
  &lt;/article&gt;
  </code></pre>
  
  <p>Thanks in advance.  </p>