Product category not showing in snippet

#90618
  • Resolved Ton Panjer
    Rank Math free

    Hello, My woocommerce products have productcategories. I want to show the product category in the Title and in the Description. But when I use the shortcode %category% It says “Example Category” in stead of the productcategory. Is there is a special shortcode for “product category”? Because i cant seem to find it. I included some screenshots.

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

    Thank you for getting in touch with us.

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

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

    When i use the code %customterm(product_cat)% like u suggested
    i get Custom term value as a result.

    https://ibb.co/8z3sH7d

    Alberto
    Rank Math business

    Hello,

    I think we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    The term is shown in the front end, not in the preview. You can confirm this by checking your page source , here is a screenshot: https://i.rankmath.com/CDpbVw

    You can also use this tool to check that as well: https://www.heymeta.com/

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

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Product category not showing in snippet’ is closed to new replies.