Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cat_description_homepage ($category) {
- $cat_id=$category->term_id;
- $prod_term=get_term($cat_id,'product_cat');
- $description=$prod_term->description;
- echo '<div class="home_cat_desc">'.$description.'</div>';
- }
- add_filter ('woocommerce_shop_loop_subcategory_title', 'cat_description_homepage', 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement