API or SQL query to update the meta title and description from our local

#776306
  • Resolved Romano Projects
    Rank Math free

    We need to use an API or SQL query to update the meta title and description from our local system.
    i can not find how and where.
    for example:
    INSERT INTO wp_termmeta (term_id, meta_key, meta_value)
    VALUES (334, ‘rank_math_title’, ‘New SEO Title’)
    ON DUPLICATE KEY UPDATE meta_value = ‘New SEO Title’;

    INSERT INTO wp_termmeta (term_id, meta_key, meta_value)
    VALUES (334, ‘rank_math_description’, ‘New SEO Description’)
    ON DUPLICATE KEY UPDATE meta_value = ‘New SEO Description’;

    but is it read-only and can be updated?

    by the way in yoast SEO it was super easy.

    thank you
    shaya

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

    I apologize for the inconvenience you are facing. To update the meta title and description in Rank Math, you cannot directly use SQL queries like in your example for Yoast SEO. Rank Math does not provide an API or SQL query method to update the meta title and description from your local system.

    To update the meta title and description in Rank Math, you need to do it within the WordPress dashboard using the Rank Math plugin interface. You can follow the steps outlined in our knowledge base articles to update the meta title and description for different scenarios:

    1. For updating homepage meta title and description, you can refer to this guide: Homepage SEO Settings via Meta Title and Description.

    2. For updating SEO title and description for posts/pages, you can follow the instructions provided in this article: How to Show Images in the Search Results.

    If you encounter any specific issues while updating the meta title and description within Rank Math, please provide more details, and we will be happy to assist you further.

    Thank you for reaching out.

    Best regards.

    Sources:
    How to Perform SEO for Multiple Languages Using Rank Math and TranslatePress » Rank Math
    How to Spy on Your Competitor’s SEO Strategy Using Rank Math
    Homepage SEO Settings via Meta Title and Description
    How to Show Images in the Search Results » Rank Math
    Homepage SEO Settings via Meta Title and Description

    Romano Projects
    Rank Math free

    is very bed ad push us to go back to yost

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    At the moment, we don’t have any API to update those metas outside WordPress.

    The query you have shared seems to be correct, however, there is a typographical issue in the query.

    Please try the query below and see if that would work on your end.

    INSERT INTO wp_termmeta (term_id, meta_key, meta_value)
    VALUES (334, 'rank_math_title', 'New SEO Title')
    ON DUPLICATE KEY UPDATE meta_value = 'New SEO Title';
    
    INSERT INTO wp_termmeta (term_id, meta_key, meta_value)
    VALUES (334, 'rank_math_description', 'New SEO Description')
    ON DUPLICATE KEY UPDATE meta_value = 'New SEO Description';

    If the issue persists, please share the specific error message you received when running the query.

    Looking forward to helping 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘API or SQL query to update the meta title and description from our local’ is closed to new replies.