I am trying to insert data manually on all tables on the back end. I am facing a problem while inserting data to wp_terms. I can successfully insert category into wp_terms and define relationships in wp_term_relationships and wp_term_taxonomy. How does WordPress differentiate between category and tags ?

1 Answer 1


take a look at wp_term_taxonomy table you will see a column called taxonomy, categories has "category" taxonomy in the field for each category and tags has "post_tag" taxonomy, custom defined taxonomies are also working this way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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