WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to show all the posts associated with a Taxonomy (not a term) but it seems to not work.


$args = array(
    'post_type' => 'projects',
    'tax_query' => array(
            'taxonomy' => 'clients',
            'terms' => 'Unilever'
$the_query = new WP_query();


php the_title();

endwhile; endif;

share|improve this question
You should use wp_reset_post_data instead of wp_reset_query when using WP_Query objects codex.wordpress.org/Function_Reference/wp_reset_postdata – Tom J Nowell Oct 3 '11 at 14:53
up vote 1 down vote accepted

You haven't specified the 'field' value e.g. 'field' => 'slug',


share|improve this answer

In case anyone else is looking for the answer:

$args = array( 'post_type' => 'projects', 'tax_query' => array( 'taxonomy' => 'clients' ) );

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.