The %seo_title% variable not work in the schema.

#707031
  • Resolved Khanh
    Rank Math free

    As my title, my plugin has an error in variable %seo_title%. It works fine everywhere except in the schema. When I enter the value of a field in the schema as %seo_title%, it will not print the results so I will get an error message in the Schema Markup Validator. Please give me solutions, thank you.

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

    I’m sorry to hear that you’re experiencing issues with the %seo_title% variable in the schema. It’s important to ensure that the variables are being used correctly to avoid any errors in the Schema Markup Validator.

    To address this issue, please make sure that the %seo_title% variable is being used within the schema in the correct format and location. Additionally, ensure that the schema type you are using supports the %seo_title% variable.

    If you continue to experience issues after verifying the usage and compatibility of the %seo_title% variable, please provide us with more details about how you are implementing this variable in the schema so that we can assist you further.

    Thank you for bringing this concern to our attention.

    Sources:
    How to Use Schema Templates in Rank Math PRO » Rank Math
    How to Use Rank Math’s Custom Schema Generator » Rank Math
    Article Schema Type » Rank Math
    General Tab in Meta Box of Rank Math SEO Plugin
    Rank Math ‘Titles and Meta’ Options and Settings

    Khanh
    Rank Math free


    I made sure to use the correct format of the %seo_title% variable in the schema as shown in the image. Note that only the variable %seo_title% does not work, other variables like %seo_description% still work in the schema.

    Hello,

    Could you please share the affected URL so we can check the schema as well?

    Meanwhile, the %seo_title% variable will fetch the data from the title you have set in the meta box

    meta title

    Looking forward to helping you.

    Khanh
    Rank Math free

    Hello there,

    Thank you for your feedback. After testing I found the problem. I set the title in the meta box exactly like you. However, my website uses Vietnamese language. If my title includes Vietnamese punctuation marks (for example: “Những thiết kế nổi bật nhất 2023”), then %seo_title% fails to resolve and any schema field using %seo_title% is treated as if it’s empty. However, when I remove all Vietnamese punctuation from the title, %seo_title% works fine.
    I have checked and the language settings of WordPress are correct. Could you please provide a solution to this issue?

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    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.

    Khanh
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    I checked some of the posts, and the SEO title variable is working fine in the Schema for them. Please share the URL of an affected page or post so we can check this further.

    Looking forward to helping you.

    Khanh
    Rank Math free

    Here is an example of the affected URL: https://homestory.com.vn/tu-van/da-muoi-himalaya-co-tac-dung-gi/

    https://upanh.tv/image/1.yBG8XZ Set the title in Vietnamese
    https://upanh.tv/image/2.yBGcEE Set headline with %seo_title%
    https://upanh.tv/image/yBGlgD There is no headline in the schema

    Hello,

    It seems that you’re currently using the Rank Math PRO plugin, but the account you have used to open this ticket is the Rank Math free version.

    Can you please search and forward a receipt from FastSpring.com so we can locate your account and verify it?

    On this issue, we have identified this issue as a bug and a fix will be released in future plugin updates. For now, disabling the Capitalize Titles option fixes the problem:

    https://search.google.com/test/rich-results/result/r%2Farticles?id=p_DHJ8e62tL5tmgKdsQvnA
    Please check and confirm that you now see the fix.

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

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

You must be logged in to reply to this ticket.