title: Retrieve CPT Posts from a specific category | WordPress
body: <p>I am currently retrieving posts from a custom post type using the following array:</p>
  
  <pre><code>$args = array(
      'post_type' =&gt; 'event',
      'meta_query' =&gt; array(
      array(
          'key' =&gt; 'location',
          'value' =&gt; get_the_ID(),
          'compare' =&gt; 'like',
          )
      )
  );
  $events_list = new WP_Query($args);
  </code></pre>
  
  <p>It works great.</p>
  
  <p>Now, I was wondering if I could retrieve these same posts but ONLY if they appear in the category ID '6'.</p>
  
  <p>Can someone explain how I update my current code to allow this?</p>
  
  <p>Thank you.</p>