How to display product category term in product pages meta title/description

#341547
  • Resolved Samuel HUMEAU
    Rank Math free

    Hi
    I want to display the product category in the meta title or description of all products. So I’m using the %term% tag but nothing shows up… :
    %title% de %term% %sep% Tableau photo Perspectives %customterm(category)%

    However, it’s working for the products categories pages.
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    If you want to display product category in the meta title or meta description, then please use the following variable – %customterm(product_cat)%

    This will display the product category in the meta title or description.

    Hope this helps.

    Looking forward to helping you. Thank you.

    Thank you very much, worked like a charm !
    Can you also tell me how to display a Woocommerce attribute of the product ?
    Thanks !

    Hello,

    Unfortunately, we don’t have a variable that supports displaying your product attributes. This would require you to create a custom variable using our filter. Please refer to our guide here: https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-variables

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

    Okay, thanks for the help !

    Azib Yaqoob
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘How to display product category term in product pages meta title/description’ is closed to new replies.