get_terms does not return my custom taxonomy terms!
-
Hello everyone,
I’m having a little problem with get_terms, I have a custom taxonomy which i inserted my terms with wp_insert_term, but get_terms returns an empty array.
heres my code:
wp_insert_term('Região Norte', 'regiao'); wp_insert_term('Região Nordeste', 'regiao'); wp_insert_term('Região Centro-Oeste', 'regiao'); wp_insert_term('Região Sudeste', 'regiao'); wp_insert_term('Região Sul', 'regiao'); wp_insert_term('Undime Nacional', 'regiao'); $categories = get_terms('regiao'); echo '<pre>'; print_r($categories);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_terms does not return my custom taxonomy terms!’ is closed to new replies.