Is there a way to display the product category name on the WooCommerce archive-product.php
page.
My product category name is "Bracelets", and I'd like that to be displayed as a title on the page.
I'm using wp_title()
currently:
<h1><?php wp_title(); ?></h1>
But that prints it to the page like this:
» Product Categories » Bracelets
I'm getting the parent page title and the catgeory name with separators in between them (above).
Is there any way I can get the title to print just "Bracelets"?
Any help with this is appreciated.
Thanks in advance!
<?php $current_cat = strip_tags(wc_get_product_category_list($product->get_id())); echo $current_cat; ?>
– Incarnate