Can't get child terms
-
Adding an image to sub category and after that adding an image to parent category cusses get_terms to return only parent categories on both admin and front end.
For example,
Let’s say I have a parent category with ID=2 with 2 sub categories and I try this:$taxonomies = array( 'category' ); $args = array( 'child_of' => 2 ); $categories = get_terms($taxonomies, $args);
I’ll end up with empty array.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can't get child terms’ is closed to new replies.