• Resolved Judah Wright

    (@judahnator)


    Hello!

    I am building a system that uses the REST API, but it needs to create posts that have both categories and tags. At the moment I am using THIS Plugin to include categories and tags in new posts, as this is not currently supported in this API.
    I am having a few problems (see THIS ticket). I was thinking that instead of fighting with trying to do this myself, I would see if this was going to be done in an official capacity first.

    Is there currently any plan to better support categories and tags?

    https://wordpress.org/plugins/rest-api/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Is there currently any plan to better support categories and tags?

    I’m not quite sure I follow what you mean by “better”. Can you clarify?

    The REST API currently lets you create, edit, list, and delete categories, tags and custom taxonomies through the API. For instance, tag management is available at /wp-json/wp/v2/tags, see this reference.

    Categories and tags can be assigned to a Post when creating or updating the post by supplying an array of term ids.

    Thread Starter Judah Wright

    (@judahnator)

    Hello Daniel!

    I apologize, I must have been trying to use an older version of the API which did not support this, or I was trying to do something wrong.

    I saw there was an update to the API Plugin, and once updated everything started working just fine.

    Great system by the way! WordPress VERY badly needed a good API

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Glad to hear you’ve gotten it worked out 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categories and Tags’ is closed to new replies.