Custom Fields
Re-Envisioned
Support MB REST API POST meta fields to tags

This topic contains 13 replies, has 2 voices, and was last updated by  mp81 10 months ago.

  • Creator
    Topic
  • #11974
    Resolved
    mp81
    Participant

    Hi guys,

    I am trying to do a POST request to wp-json/wp/v2/tags to create a new tag, and as part of the POST request I am sending as a form parameter is ‘meta_box’ with a json value.

    My tag gets created but my field (field id is _post_tag_aliases, it is a text field) does not get populated

    I have attempted various formats for the meta_box value:

    [
      {
       "_post_tag_aliases":"abc"
      }
    ]

    and

    {
      "_post_tag_aliases":"abc"
    }

    And I have not had any success.

    Would love to know how I can achieve this. I have not been able to find any examples of doing this.

Viewing 3 replies - 11 through 13 (of 13 total)
Viewing 3 replies - 11 through 13 (of 13 total)

You must be logged in to reply to this topic.