WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the wp_term_taxonomy table if I look at the category taxonomy, and then look at all its term_id and term_taxonomy_id, they are all identical. But when I look at the last 4, which are from my custom taxonomy, they don't match. What is a good explanation for this.

I am not allowed to add images yet since I am new, so, I am adding a link to the screen-shot. Thanks.

Screen Shot

share|improve this question
up vote 2 down vote accepted
  1. term_id is a unique ID for the term.
  2. term_taxonomy_id is a unique ID for the term+taxonomy pair.

A taxonomy consists of sometimes many terms, so basically the term_taxonomy_id links the term_id to the taxonomy.

All info on these can be found here:


share|improve this answer
Thanks Jared, for the link. – Faiyaz Haider Jan 24 '12 at 20:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.