relevanssi_do_query not honoring tax_query
-
the relevanssi_do_query function does not seem to honor ‘tax_query’ when creating a WP_Query object. Code:
// setup query args $args = array('s' => $_POST['query'], 'post_type' => $post_type, 'post_status' => array('publish') ); if(isset($post_tax)) { $args['tax_query'] = array( array( 'taxonomy' => $post_tax, 'field' => 'slug', 'terms' => $post_term ) ); } $query = new WP_Query($args); // var_dump($query); relevanssi_do_query($query);
If I comment out the last line my results are as expected but I lose other functionality of the relevanssi query engine.
thanks
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘relevanssi_do_query not honoring tax_query’ is closed to new replies.