Is there a way to get all sub categories of several categories? something like:
get_categories( array( 'child_of'=>array(10,3,8) );
Is there a way to get all sub categories of several categories? something like:
get_categories( array( 'child_of'=>array(10,3,8) );
Comments are closed.
It’s not possible, wordpress just accepts one integer in all it’s functions that get categories children. You’ll have to get their children separately:
Hope it helps!