Connect ACF fields to Schema Markup in Rank Math

#196372
  • Resolved Evan Ross
    Rank Math free

    Hello,

    I trust you are well.

    I have a custom post type called Events, with an event page template setup in Elementor Pro.

    I have custom fields (created in ACF) like event_location (City/Country), event_venue, etc.

    How can I connect these custom fields to become schema markup compliant?

    Thanks

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

    Thank you for contacting Rank Math today.

    In order to use the values from your custom fields in your Schema, you can use the variable %customfield(field_name)%. For example, to display the venue name you’d use something like %customfield(venue_name)%.

    Hope this helps solve your issue.

    Don’t hesitate to get in touch if you require any further assistance.​

    Hi Miguel,

    Thank you for the response.

    So, I would enter these into the Schema Builder? I would still have to do this for every individual “event” type post?

    I was hoping that in my single page template for “events”, that I could assign ACF values to particular schema?

    Hello,

    Thank you for keeping in touch with us.

    In this case, you can make use of Rank Math’s Schema Template and assign the custom field variable in the schema builder and display these templates’ conditionality to the preferred custom post type.

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

    Hi Jeremy. This makes sense. As far as I am aware, Schema Template’s are a Pro feature?

    Brian
    Rank Math free

    Hello

    Thank you for getting back to us.

    Yes, sure the schema templates do require the Rank Math Pro version.

    So for this case, you may have to insert the custom field variable in every single event schema on your event posts.

    Let us know if you have any other questions.
    Thank you.

    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 ‘Connect ACF fields to Schema Markup in Rank Math’ is closed to new replies.