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

    (@danielbachhuber)

    Because a category is a separate resource, v2 stipulates the relationship should be added in a separate request.

    However, if you want to add category as an attribute to the post resource, you’ll be able to modify it when you create or update the post.

    See documentation on register_api_field(): http://v2.wp-api.org/extending/modifying/

    Thread Starter crea8xion

    (@eyouthace)

    Hi Daniel,

    Thanks a lot, i haven’t able to read all docs, its been there all the time.

    Rob.

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

The topic ‘How to add category on create post’ is closed to new replies.