title: wp_query for category and custom post type together
body: <p>I'm trying to make one loop with categories (1,8) and custom post type (promotions) but it's not work.
  This is My query</p>
  
  <pre><code>$args = array (
  'post_type' =&gt; array( 'promotions' ),
  'category__in' =&gt; array(1,8),
  'posts_per_page' =&gt; -1,
  );
  $queryconfig = new WP_Query( $args );
  
  &lt;?php while ( $queryconfig-&gt;have_posts() ) : $queryconfig-&gt;the_post(); ?&gt; 
  
              &lt;a href="&lt;?php the_permalink() ?&gt;"&gt;
              &lt;span&gt; &lt;?php the_title() ?&gt;&lt;/span&gt;
              &lt;/a&gt;
  
      &lt;?php endwhile;?&gt;
  
      &lt;?php wp_reset_postdata(); ?&gt; 
  </code></pre>
  
  <p>What should I do? How join category and custom post type in one loop?</p>