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.

Taxonomy term IDs not the same as what Wordpress actually wants? #1395

Description

@jdolan

I'm seeing some very strange behavior when creating and then associating terms via the REST API:

  • The API will create the new term as requested and return a well-formed response including the new term ID.
  • Attempting to associate the new term using the returned ID to an existing post will succeed as well (HTTP 201).
  • However, when viewing the post in WP-Admin, some of the term associations are either missing or entirely wrong.

What's really strange is that I can import a term via the API and then go search for it in WP-Admin as well. The ID that I got back in my REST response is NOT the term ID that Wordpress is using to render the Edit form for the term. That seems a red flag to me, but I'm not sure how or why it's happening.

Attached are screenshots of importing the term, associating the term, searching for the term against the REST API -- these are all in agreement with each other.

screen shot 2015-07-11 at 1 50 26 pm
screen shot 2015-07-11 at 2 05 33 pm
screen shot 2015-07-11 at 2 19 15 pm
screen shot 2015-07-11 at 1 53 00 pm

The last two screenshots are from the WP-Admin, and they clearly show that "Women's Tennis" is not associated to the Post, and the term ID is also different (27564 != 27580).

screen shot 2015-07-11 at 1 56 15 pm
screen shot 2015-07-11 at 1 56 52 pm

Any idea what's going wrong here?

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions