• Resolved Fantou

    (@fantou)


    Hi there,

    WIth N8N, is this possible to retrieve meta description and title from a N8N’s node and update a post with a HTTP’s request’s node ?

    I’ve tried with this :

    {"meta": {
    "rank_math_description": "{{ $json['META DESCRIPTION'] }}",
    "rank_math_title": "{{ $json['META TITLE'] }}"
    }
    }

    In the N8N HTTP Request node, I’ve tried with the JSON and the “field below” method, but no success.

    The connexion with my WordPress is OK because the update of slug, featured image and title is ok. It’s just the meta I can’t succeed to update.

    I can’t use a WordPress node beacause I have to enter the URL dynamically, so I have to use a HTTP request node

    Have you some ideas for resolving this scenario ?

    Have a nice day !

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @fantou,
     
    Thank you so much for getting in touch.
     
    At the moment, Rank Math’s REST API doesn’t support updating metadata like meta title and description via external tools such as n8n. To achieve this, you’ll need to create a custom REST API endpoint in WordPress that can handle and save Rank Math metadata using WordPress functions like update_post_meta($post_id, 'rank_math_title', 'VALUE').
     
    Don’t hesitate to get in touch with us if you have any other questions.

    Thread Starter Fantou

    (@fantou)

    Hello @rankmathsupport ,

    Thanks for your reply. But with Make/Integromat, I’ve succeed to update meta-data with the WordPress’s node.

    So in this case, it does not work because I’m using a “http request”‘s node ? Or is it that N8N is not compatible like Make ?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @fantou,
     
    The problem is that the keys from our plugin and not registered immediately. That’s why when people want to update them with the REST API, they need to first register them, which can be the case here.
     
    To register the keys for the API, something similar to this can be followed: https://gist.github.com/junaidtk/278ef494704c0694a27e7e5031f364c3
     
    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter Fantou

    (@fantou)

    Hi @rankmathsupport,

    Ok, thanks for your explanations !

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @fantou,
     
    You’re very welcome! We’re glad the explanation helped. Feel free to reach out anytime if you run into any other issues or have more questions.
     
    Thank you.

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

The topic ‘Meta title and meta description with N8N’ is closed to new replies.