<ul>
<?php 
     $taxonomyName = "product_cat";
$prod_categories = get_terms($taxonomyName, array(
'orderby'=> 'name',
'order' => 'Desc',
'hide_empty' => 1,
));  
foreach( $prod_categories as $prod_cat ) :
if ( $prod_cat->parent != 0 )
    continue;
$cat_thumb_id = get_woocommerce_term_meta( $prod_cat->term_id, 'thumbnail_id', true );
$cat_thumb_url = wp_get_attachment_image_src( $cat_thumb_id, 'thumbnail-size' )[0];
$term_link = get_term_link( $prod_cat, 'product_cat' );
   ?>

  • <h2>02</h2>
        <h3><div class="cat"><div class="wrap_cat"><?php echo $prod_cat->name; ?> </div></div></h3>
        </span>
             <img src="<?php echo $cat_thumb_url; ?>" alt=""/>    
        <p><?php ?></p>
        <a href="<?php echo $term_link; ?>" class="trend_read_more"> Read More</a>
    </li>      <?php endforeach; 
    wp_reset_query(); ?>    
    </ul>   
    

    i want to display category discription inside the p tag , please help me if anybody know?

  • Read more here: how to display woocomerce description of each category in wordpress?


    Solution:

    If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


    Wordpress related questions and answers: