I am using wp-query for filtering results on the basis of tax_query.
$args = array( 'post_type' => 'product', 'relation' => 'AND', 'tax_query' => array( array( 'taxonomy' => 'Micromax', 'field' => 'slug', 'terms' => array('micromax','canvas') ) ) );
In (micromax,canvas) 1 is child of any 2nd term.I need that if there is parent in term then it skip the parent term and show results only on basis of children (i.e result of only 1 term). Similarly if ,
terms = 'micromax','canvas','ninja' and out of three there are 2 child then result should come from only 2 children terms.
Hope you got my point.