Rankmath + WordPress REST API

#625869
  • Resolved Kasper
    Rank Math free

    Hello,

    We are creating a SaaS which uses the WordPress REST API to post pages/posts and we want to be able to define the title tag and meta description of a wordpress post/page through an API. Is this possible somehow?

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

    Thank you for contacting us and bringing your concern to our attention.

    We save all our metadata on the post meta field. Please note that we don’t have any routes in the REST API from WordPress to update these fields so you would need to update them like you would for any other default postmeta entry. The meta fields are the following: rank_math_title or rank_math_description

    So, you can create your own custom REST API functions to update Rank Math fields in the post meta table. You can refer to the following article as an introduction: https://mklasen.com/updating-custom-post-meta-via-the-wordpress-rest-api/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Kasper
    Rank Math free

    Hello,

    Thank you! I will look further into that.

    Hello,
    
    You’re welcome.

    We are super happy that we have addressed 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.

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

The ticket ‘Rankmath + WordPress REST API’ is closed to new replies.