Weird behaviour when adding terms/term_taxonomies programmatically

Maybe this can help

delete_option('taxonomy-slug_children');

just replace the ‘taxonomy-slug’ with ‘cat’ or other taxonomy you are using.
This line is supposed to used in the same action hook function, right after you create the term.

Leave a Comment