WP_Query OR clause for tax_query and keywords
Here’s a little experiment: You can try the following setup: $args = array( ‘wpse_search_or_tax_query’ => true, // <– New parameter! ‘s’ => ‘some search text’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => array( ‘some-category-slug’ ), ‘operator’ => ‘IN’, ), ), ); $query = new WP_Query( $args ); where we introduce … Read more