2

wp_create_category() adds new categories to the 'content' taxonomy associated with the post type...

Simple question really neither wp_create_category() or wp_insert_category() allows configuration for taxonomy type... so how can I can do it?

1
  • What is the use case?
    – AlxVallejo
    Jul 21 '12 at 16:33
4

For custom taxonomies you should use wp_insert_term()

0

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.