php - woocommerce: join post and product category -


i'm working on e-commerce website , know if it's possible have same category posts , woocommerce products ? both articles , products specific category. i've tried https://wordpress.org/support/topic/relating-a-post-to-a-product-category make products categories appears in posts don't know how display them in posts loop.

<article <?php post_class(); ?>>   <header>         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>      <?php the_tags('<ul class="entry-tags"><li>','</li><li>','</li></ul>');     the_category( ' ' ); ?>   </header>  <div>    <?php the_excerpt(); ?>     <?php if ( has_post_thumbnail() ) {      the_post_thumbnail();     }      ?> </div>  </article> 

thanks in advance.

checkout https://wordpress.org/support/topic/relating-a-post-to-a-product-category

the main idea modify taxonomy allow categories used products , posts, or better create new taxonomy prevent polluting original taxonomy.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -