New answers tagged

0

Assuming that you are trying to filter your terms to only show terms that either have children or not, you can actually use the childless parameter in your get_terms() function. $children = get_terms( 'taxonomy' => '$taxonomy_slug', 'hide_empty' => false, 'childless' => true ) ); This will output an array of terms that don't have ...



Top 50 recent answers are included