Primary Category Woocommerce Link
-
My friend
I need make my Primary category link –<a href="#######">eeeee</a>
How can i do this ? What i need to wright here – #######<a href="#######">eeeee</a>
This code show primary Woocommerce category withOut link
<?php $primary_cat_id=get_post_meta($product->id,'_yoast_wpseo_primary_product_cat',true); if($primary_cat_id){ $product_cat = get_term($primary_cat_id, 'product_cat'); if(isset($product_cat->name)) echo $product_cat->name; } ?>
- The topic ‘Primary Category Woocommerce Link’ is closed to new replies.