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

ID mismatch between categories in WP-API and DB terms/terms_taxonomy table #1628

Description

@stonetip

When I run a query for categories, e.g. http:///wp-json/wp/v2/terms/category the ids and parent ids don't match what's in the MySQL tables. Yet when I run a query like /wp-json/wp/v2/posts?cat=566 (which is the DB id for the category vs. the API reporting it as 569) I get the posts under the proper category. If I use the id from the API I get none. (The posts retrieved using the DB id are the same as those retrieved using wp-json/wp/v2/posts?category_name=

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions