tax_query
-
I have an issue that has just cropped up.
I’m running the following query:
// GET FEATURES $args = array( 'post_type' => 'features', 'posts_per_page' => 5, 'tax_query' => array( array( 'taxonomy' => 'regions', 'field' => 'slug', 'terms' => $r_term->slug, ) ) ); // set query based on the above parameters $wp_query = new WP_Query($args);
Up until yesterday the query was working fine, no problems at all. Now when it runs it seems to pull in random results, i.e. posts that don’t have the relevant taxonomy term (as well as the correct results). I have no idea what is going wrong.
Any help trouble shooting this would be much appreciated.
Cheers
Dave
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘tax_query’ is closed to new replies.