Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@danielbachhuber
Copy link
Member

Tags are now accessible at /wp/v2/tags, and categories accessible at
/wp/v2/categories. Post terms reside at /wp/v2/posts/<id>/tags and
/wp/v2/<id>/categories

Although this introduces the risk of collision between custom post types
and custom taxonomies, said collision isn't currently handled in
WordPress core. Developers can use rest_base to ensure CPTs and
taxomonies have distinct slugs.

Fixes #829

Tags are now accessible at `/wp/v2/tags`, and categories accessible at
`/wp/v2/categories`. Post terms reside at `/wp/v2/posts/<id>/tags` and
`/wp/v2/<id>/categories`

Although this introduces the risk of collision between custom post types
and custom taxonomies, said collision isn't currently handled in
WordPress core. Developers can use `rest_base` to ensure CPTs and
taxomonies have distinct slugs.
@danielbachhuber danielbachhuber added this to the 2.0 Beta 9 milestone Dec 8, 2015
@danielbachhuber
Copy link
Member Author

@WP-API/amigos #reviewmerge

@rmccue
Copy link
Member

rmccue commented Dec 9, 2015

lgtm 👍

rmccue added a commit that referenced this pull request Dec 9, 2015
Move tags and categories to top-level endpoints
@rmccue rmccue merged commit a055a08 into develop Dec 9, 2015
@rmccue rmccue deleted the 829-move-taxonomy-endpoints branch December 9, 2015 04:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants