Support » Plugin: Yoast SEO » Get Primary Category in Woocommerce Product Title

  • Resolved arnygood

    (@arnygood)


    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)
  • Marked as resolved, but the solution isn’t posted. This is exactly what I’m looking for. Any idea how to do it?

Viewing 1 replies (of 1 total)
  • The topic ‘Get Primary Category in Woocommerce Product Title’ is closed to new replies.