shortcode rendering

#577349
  • Resolved Anonymous
    Rank Math free

    Hi
    Most of my content is in shortcodes in the WordPress post editor but it isn’t being seen by Rank Math (unlike Yoast that does see it).

    I also tried putting the shortcode in an ACF the post uses but no luck.

    Any ideas?

    Thanks

    Chris

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

    Thank you for contacting Rank Math for help with your keyword not being detected inside shortcodes.

    Rank Math cannot read content inside shortcodes. It can only read content that is loaded on the page in the editor, that is why the keywords are not detected. Please try adding the custom field name by going to your WordPress dashboard > Rank Math > Titles & Meta > Post type (post, page etc) and enter the custom field name so that it is used in the SEO score.

    Hope that helps. Please let us know if you have questions.

    Anonymous
    Rank Math free

    Thanks!

    I know you said that shortcodes are not readable in the editor but are you intending supporting this (as Yoast does)?

    Re. your second bit “Please try adding the custom field name by going to your WordPress dashboard > Rank Math > Titles & Meta > Post type (post, page etc) and enter the custom field name so that it is used in the SEO score.”

    Does this mean that shortcodes are expanded in ACF so if I add the field then your SEO will see the text the shortcode renders?

    Hello,

    Yes, you may need to include the custom fields you have used on the post so Rank Math can analyze them.

    Here’s a link for more information:
    https://rankmath.com/kb/titles-and-meta/#posts-custom-fields

    However, if you’re using ACF as you mentioned, our plugin does read the content from ACF automatically when you enable the ACF module

    ACF

    The ACF module is built-in with our plugin and when you enable it, it allows Rank Math to read and analyze your website’s content added using custom fields. You can follow our guide to activate ACF compatibility: https://rankmath.com/kb/advanced-custom-fields/

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Thanks …. but … if it’s a shortcode in the ACF, will Rank Math expand it out to the text and analyse that?

    Thanks

    Hello,

    Rank Math can read the text within the ACF field. If you’re using shortcode within the ACF field, Rank Math will not be able read content inside shortcode.

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

    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 ‘shortcode rendering’ is closed to new replies.