Taxonomy’s title
This piece of code will return all categories assigned to current product. global $post; $terms = get_the_terms( $post->ID, ‘product_cat’ ); foreach ($terms as $term) { $cat_name .= $term->name.’, ‘; break; } echo $cat_name; add this code inside single-product.php Hope this help !