Okay
  Public Ticket #4506214
Unable to Update Foxiz 'Tagline' Field via WordPress REST API
Closed

Comments

  • PixLix started the conversation

    Hello Foxiz Support Team,

    I am trying to programmatically update the "Tagline" field for posts using an external automation platform (n8n) that connects to the WordPress REST API.

    Through inspection, I've determined that the tagline value is stored within a single post meta field named rb_meta, specifically as a nested value (e.g., rb_meta['tagline']).

    However, I am unable to update this field via the REST API. I have tried sending a POST request to the /wp-json/wp/v2/posts/<post_id> endpoint with the following JSON body structures, but none of them successfully update the tagline:

    Attempt 1:

    JSON


    {  "meta": {    "tagline": "My new tagline"  }
    }
    

    Attempt 2:

    JSON


    {  "meta": {    "rb_meta": {        "tagline": "My new tagline"    }  }
    }



    I suspect that the rb_meta field is not properly registered to be writable through the REST API (the show_in_rest and schema properties in register_post_meta might need to be configured for this).

    Could you please provide the correct method or a PHP code snippet to properly register the rb_meta field (and its nested tagline property) so that it becomes editable via the REST API?

    Being able to update this field is crucial for my automated content workflow.

    Thank you for your assistance.

    Best regards,

    Panos

  •  381
    Theme Ruby replied

    Thanks for your feedback!

    We’ll consider updating this part in future releases to move the tagline into a separate meta field, so it’ll be easier for you to handle.

    For now, you’ll need to customize the function handling the API endpoint to save the tagline into the meta array.

    Please let us know if you have any other questions or need further assistance.

    Best regards,