Get Primary Category in Woocommerce Product Title
-
Hi,
I found this variable %%ct_product_cat%% to get the categories of a product (and add it to the title of a product). But it displays all the categories of the product (parent category + subcategories), separated by a coma. I can’t figure out how to get the Primary Category only.Any help?
Thanks!
Arnauld
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get Primary Category in Woocommerce Product Title’ is closed to new replies.