Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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:

http://codex.wordpress.org/WordPress_Taxonomy

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

Your Answer

 
discard

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.