Add product category to title

#141172
  • Resolved nesensohnramona
    Rank Math free

    Hi all,

    I am trying to add the category title to our products’ meta titles as following: %title% %sep% %category% %sitename%. Instead of adding the chosen category it just adds “Example category”.

    What am I missing?

    Thanks a lot!

    Best regards
    Ramona

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    The %category% variable is used for WordPress post categories. To get WooCommerce product categories please use %customterm(product_cat)%

    Please note that the term is shown in the front end, not in the preview. You can confirm this by checking your page source.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Wow, thanks for your hyper fast reply, Anas!

    Good to know that I can’t see it in the preview. It all works fine now!

    Best regards
    Ramona

    Anas
    Rank Math business

    Hello,

    We are super happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Add product category to title’ is closed to new replies.