title: Sort by ACF option and also from current category - custom post type
body: <p>With use of the Advanced Custom Fields plugin I created a select dropdown which contains 6 membership types. All of my 'listings' using this custom field are assigned one of the 6.</p>
  
  <p><img src="https://i.stack.imgur.com/uQKXs.png" alt="enter image description here"></p>
  
  <p>I have managed to get my listings to display in order of membership level, however it's not defining by category that your currently in. It's grabbing listings from every other category too.</p>
  
  <pre><code>&lt;?php 
  // args
   $args = array(
       'numberposts' =&gt; -1,
       'post_type' =&gt; 'directory_listings',
       'meta_key' =&gt; 'membership_type',
       'orderby' =&gt; 'meta_value',
       'taxonomy' =&gt; 'listing_category'
   );
  
  // query
  $wp_query = new WP_Query( $args )
  
  ?&gt;
  
  &lt;?php if (have_posts()) : ?&gt;
  
      &lt;?php
      while( $wp_query-&gt;have_posts() ) {
          the_post();
          ldl_get_template_part('listing', 'compact');
          ldl_get_featured_posts();
      }
      ?&gt;
  
  &lt;?php else : ?&gt;
  
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Also, I am using the plugin: <a href="https://wordpress.org/plugins/ldd-directory-lite/" rel="nofollow noreferrer">https://wordpress.org/plugins/ldd-directory-lite/</a></p>