ACF in schema genegator

#354662
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    Yes, the %customfield(field_name)% variable can directly fetch the data from the ACF field and you can use it inside the Schema validator or meta box.

    Hope this helps. Let us know if you need any other assistance.

    Minh
    Rank Math free

    Thanks for your quick respond. Have a great day.

    Hello,

    We are super happy that we could address your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Minh
    Rank Math free

    By the way, how do the repeater subfields work in RM schemas? Do below variables still work?

    %customfield(field_name_0_subfield_name)%
    %customfield(field_name_1_subfield_name)%

    Thanks a lot.

    Hello,

    Yes, that should work fine.

    Let us know how that goes. Looking forward to your update.

    Thanks.

    Can you add %customfield(field_name)% from an ACF Options page? I can’t get that to work. I know with shortcodes, I need to use [acf field=”field_name” post_id=”options”] to get the shortcode to work in the content of WordPress; is there a way to get the shortcode to work in RankMath? %customfield(field_name_options)% ??

    Thanks for any help!

    Hello,

    No, that is not possible to do as the variable is only designed for custom fields on the actual posts and pages.

    The only way to get this would be to create an additional variable using the following filter that could fetch those values: https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-variables

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

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

The ticket ‘ACF in schema genegator’ is closed to new replies.