/ functions.php or Code Snippets add_action('pre_get_posts', function($q) { if ( !is_admin() && $q->is_main_query() && ( is_shop() || is_product_category() ) ) { $tax_query = (array) $q->get('tax_query'); $tax_query[] = array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => array('the-good-earth'), 'operator' => 'NOT IN', ); $q->set('tax_query', $tax_query); } });