custom schema & variables (moving from yoast)

#332108
  • Resolved Benjamin Wragg
    Rank Math business

    Hi,

    We are evaluating RankMath for our existing website clients that we manage. We currently use Yoast.

    What appears to us is what we have seen about how we can use different schemas and even create custom ones.

    I have been reading https://rankmath.com/kb/rich-snippets/ and had a question about the property. Do you have to enter the values in the properties manually?

    e.g if I had a product and i needed to fill in the Brand name and MPM but I already had them stored in a custom field or attribute could they be dynamically inserted into the schema? something like how the %url% is used? can you do %some_other_attribute% or %some_other_custom_field%.

    If this is possible can it be set globally for a post type rather than set on every product page.

    Thanks,

    Benjamin

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

    Thank you for contacting Rank Math today.

    In the Free version, this needs to be included manually, but if you upgrade to the PRO version you get access to the Schema Templates that can be applied to multiple entries at once.
    https://rankmath.com/kb/schema-templates/

    On top of that, you get access to a variable called %customfield(field-name)% that can automatically fetch data from custom fields on your pages.

    ​​​​​​These two options combined allow you to create rich Schema markup that can be fully automated.

    Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.

    Awesome, super helpful thanks.

    Further question…we have a few custom plugins that create things like nutritional information on a product page for a product and recipe posts. Is there a simple way via code to link it to a schema template (e.g recipe & nutritional information schema) and tell it via code what data to insert in which properties?

    Hello,

    This might be possible to include via the variable we mentioned previously if the data is saved on the postmeta table.

    If that’s not accessible there we might also be able to provide a custom code snippet for this depending on the exact situation and if you give us a bit more insights on how this is saved.

    Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.

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

The ticket ‘custom schema & variables (moving from yoast)’ is closed to new replies.