WooCommerce Product parent category in title

#83466
  • Resolved Marco Di Bella
    Rank Math free

    Hi,

    I would like to show the parent category in the title, example:
    toyota – corolla – product items

    When I select the category “corolla” in the title I don’t have the parent “toyota”.

    Thanks,
    Marco

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

    Thank you for contacting Rank Math today.

    You can use the variable : %category% to get the category name. You can also use %terms% to show all categories related to the product.

    Let us know if this helps.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi,

    Thank you for your fast response and help.

    I am in Product Categories – Category Archive Titles
    Current configuration: %term% %sep% %sitename%

    I tried with:
    %category% %term% %sep% %sitename%
    %term% %category% %sep% %sitename%
    %category% %sep% %sitename%

    I still cannot see the parent category in the title. It is referred to the woccomerce shop, products – categories in wordpress.

    Thanks,
    Marco

    Hello,

    We are so sorry but we do not have that option available. You can add a title manually to the product category archives as we do not have a way to automatically show the parent category name in a child category archive.

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

    Hi,

    Thank you I will follow your suggestion.
    I am loving your product so far.

    Thanks,
    Marco

    Alberto
    Rank Math business

    Hello,

    We are super happy that this helped you with 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.

    Domin
    Rank Math free

    Hello,
    And I am super sad that this works like this – what I’ve just discovered 🙁
    I have dozens of categories to overwrite manually.
    It would be very cool feature if it list all products categories by %terms% (but there is only %term%).
    Regards,
    Dominik

    Hello,

    I’ll forward your suggestion to our team. In the mean time you can use this filter: https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-variables to add custom variables to the titles & description dropdown.

    If you have any other questions in the future, know that we are here to help you.

    Thank you.

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

The ticket ‘WooCommerce Product parent category in title’ is closed to new replies.