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.

the title says it all. At the moment in my custom taxonomies I'm getting the terms using the term id and taxonomy name.

Thought this question would've been asked before but can't find it anywhere! So just thought I'd ask and see if anyone has any answers.

cheers, daithi

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

If you take a look into the Wordpress documentation you will find Wordpress Taxonomies

  • term_id is the ID of a term in the terms table
  • term_taxonomy_id is a unique ID for the term + taxonomy pair.
share|improve this answer
    
so manipulating and grabbing terms based only on the term_id wouldn't cause duplicates then? –  Coombesy Jan 2 '12 at 18:51
1  
actually just answered that last question. Had a look at the wp_terms table and yep using the term_id only is safe. Thanks for your reply @Juan –  Coombesy Jan 2 '12 at 18:55
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.