Issues with Dynamic Variables not working properly

#1045012
  • Resolved Lh
    Rank Math free

    Hello,

    I installed Rank Math few days ago and I am experiencing several issues on my WooCommerce site. Despite installing and reinstalling Rank Math and deactivate or reactivating it multiple times, most dynamic variables do not work in my product SEO titles.

    Here is a list of problems I have encountered:

    – The variable %primary_taxonomy_terms% returns all product categories instead of only the primary category.
    – Variables related to product tags such as %tag% do not return any value
    – %category% or %categories% do not return any value
    – WooCommerce attribute variables like %wc_attr_slug% do not return any values, even when the attributes are visible and properly assigned to the products

    I have verified that the WooCommerce SEO module is enabled in Rank Math.

    I have cleared all caches, tested with only WooCommerce and Rank Math active, and am using a basic theme (Astra Pro) to rule out conflicts.

    I have verified product data and slugs, and attributes are correctly configured in WooCommerce.

    Could you please help me resolve the issue preventing Rank Math from retrieving and displaying dynamic product data correctly ?

    Thank you in advance for your help.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math support.

    1. The primary_taxonomy_terms variable returns all the terms of the primary taxonomy, not just the primary term.

    2, 3, & 4. You will have to use the customterm variable to get the product category, tag, and attribute:

    %customter(product_cat)%
    %customter(product_tag)
    %customter(pa_attributename)%%

    Here is a list of all the variables you can use: rankmath.com/kb/variables-in-seo-title-description/

    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 1 replies (of 1 total)

The ticket ‘Issues with Dynamic Variables not working properly’ is closed to new replies.