Viewing 1 replies (of 1 total)
  • Thread Starter SS88 LLC

    (@ss88_uk)

    Here’s the fix:

    function kia_no_child_terms($wp_query) {  
    	if ( isset ( $wp_query->query_vars['product_cat'] ) && !is_admin() && $wp_query->is_main_query())
      		$wp_query->tax_query->queries[0]['include_children'] = 0;
    }
    add_action('parse_tax_query', 'kia_no_child_terms');
Viewing 1 replies (of 1 total)
  • The topic ‘Layered Nav does not update when removing displaying products from sub category’ is closed to new replies.