• Zurasha

    (@w3intelligence)


    Hi,

    I was searching differences between term_id and term_taxonomy_id. I understood that term_id is simply single term id and term_taxonomy_id is unique id for term_id+taxonomy group because we may have same term_name and term_slug in different taxonomies and wp gives them same term_id.
    But when I added similar terms(same term_name and term_slug) in different taxonomies, they got different term_ids, so why I got different term_ids if they should be same or if they should not be identical then what is purpose of term_taxonomy_id ?

    • This topic was modified 4 years ago by Zurasha.
Viewing 1 replies (of 1 total)
  • genrieta

    (@genrieta)

    Hello, very interesting question.
    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.

    best Regards,
    and good luck

Viewing 1 replies (of 1 total)
  • The topic ‘How does WP use ‘term_taxonomy_id’ ?’ is closed to new replies.