How to get rankmath seo postmeta values

#34185
  • Resolved Karanadiksha
    Rank Math free

    Hi,
    How can I get rankmathseo values from a php function?
    I need something like: get_post_meta( get_the_ID(), ‘key_1’, true ); but for getting rankmath seo…
    So I can check if a post has keyword or not… etc
    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Todd
    Rank Math free

    Hi,

    Thanks for getting in touch with us.

    You can use the following meta keys to capture the title, description and focus keyword fields:

    rank_math_title
    rank_math_description
    rank_math_focus_keyword

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

    Thanks

    If there is several keywords then meta will return array?

    Todd
    Rank Math free

    Hi,

    Yes, it will.

    Do let us know if you need assistance with anything else.

    Thanks Todd

    Hello,

    I am glad that this info was helpful 🙂

    Feel free to contact us should any other issues come up.

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

The ticket ‘How to get rankmath seo postmeta values’ is closed to new replies.