Q:

Help with a query not working with custom taxonomy

The query below is always returning the latest "news" post, not the latest "news" post with the taxonomy "sotm". I have verified the details of my custom taxonomy, name is "postCat" attached to post type "news", and there is a term "sotm" applied to the post I want to display. Can anyone point out what might be wrong?
    <?php
        $sotmArticle_query = new WP_Query(array(
            'post_type' => 'news',
            'postCat' => 'sotm',
            'orderby' => 'date',
            'order' => 'DESC',
            'posts_per_page' => 1
        ));
        if($sotmArticle_query->have_posts()){
            while($sotmArticle_query->have_posts()){ $sotmArticle_query->the_post();
    ?>

A:

Try something like this:
    $sotmArticle_query = new WP_Query(
      array(
        'post_type' => 'news',
        'tax_query' => array(
                           array(
                                  'taxonomy' => 'postCat', 
                                  'field' => 'slug', 
                                  'terms' => 'sotm'
                           )
                       ),
        'orderby' => 'date',
        'order' => 'DESC',
        'posts_per_page' => 1
     )
    );
    if($sotmArticle_query->have_posts()){
        while($sotmArticle_query->have_posts()){ $sotmArticle_query->the_post();
?>

