Category taxonomy not yet created?
-
I’m trying to create a new category using wp_create_category, however in wp_insert_term in taxonomy.php I’m getting an error here:
if ( ! taxonomy_exists($taxonomy) )
return new WP_Error(‘invalid_taxonomy’, __(‘Invalid taxonomy’));I’m guessing the category taxonomy is created elsewhere? If so how can I make sure it gets created so I can create categories via plugin code?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Category taxonomy not yet created?’ is closed to new replies.