I have regular Wordpress code to display a category description:
<?php echo category_description( $category_id ); ?>
But how can I display a description of the Woocommerce category? @@ After one of the suggestions for comments, I added:
<?php if ( have_posts() ) { while ( have_posts() ) { the_post(); global $post, $product; $categ = $product->get_categories(); $term = get_term_by ( 'name' , strip_tags($categ), 'product_cat' ); echo $term->description; }
However, it does not work.
source share