title: Wordpress query_post array with Advanced Custom Fields (probably a simple solution)
body: <p>Working on a Wordpress site and was wondering if anyone could point me in the right direction.
  I have the following query_post which filters posts on my template and its working great.</p>
  
  <pre><code>query_posts( array( 'category_name' =&gt; 'galoretv', 'post_type' =&gt; 'post', 'paged'=&gt;$paged, 'showposts'=&gt;0, ) );
  </code></pre>
  
  <p>How would I append this to include a check for a specific value from Advanced Custom Fields?
  Posts in this category have a radio button with three options 'primary' 'secondary' 'standard'
  I want to be able to check against each value i.e if you belong in 'galoretv' and 'standard' do this.</p>
  
  <p>I have the page executing and sorting with the parameters above, just not sure how to add the ACF value. I was able to get it to work using the sticky option but thats gonna work cause i need to have primary and secondar optionality. This is show i had it working with the sticky.</p>
  
  <pre><code>query_posts( array( 'category_name' =&gt; 'galoretv', 'post_type' =&gt; 'post', 'paged'=&gt;$paged, 'showposts'=&gt;0, 'post__in'=&gt;get_option('sticky_posts')) );
  </code></pre>
  
  <p>The radio buttons field is called 'landing-grid-placement'</p>
  
  <p>Any thoughts? Been checking the documentation, can't figure it out.
  <a href="http://www.advancedcustomfields.com/docs/field-types/checkbox/" rel="nofollow">http://www.advancedcustomfields.com/docs/field-types/checkbox/</a></p>
  
  <p>Thought this would work but it didn't </p>
  
  <pre><code>query_posts( array( 'category_name' =&gt; 'galoretv', 'post_type' =&gt; 'post', 'paged'=&gt;$paged, 'showposts'=&gt;0, 'landing-grid-placement' =&gt; 'primary') );
  </code></pre>
  
  <p>Any help would be greatly appreciated. This is probably a simple syntax issue but its eluding me and causing me a lot of issues. Been searching for an answer but haven't got it right yet. Thank you advance to whoever reads this and a double thank you to anyone who contributes a solution.</p>
  
  <p><strong>APPENDED CODE PER NOTE BELOW</strong></p>
  
  <pre><code> &lt;?php
  
      $args = array(
          'post_type' =&gt; 'post',
          'category-slug' =&gt; 'models-galore',            
          'showposts'=&gt;1, 
          'meta_query' =&gt; array(
              array(
                  'key' =&gt; 'grid_location',
                  'value' =&gt; 'primary',
                  'compare' =&gt; '=', 
                  'type' =&gt; 'CHAR' 
              )
          )
      );
  
      $query = new WP_Query($args);
      if($query-&gt;have_posts()) {
          while($query-&gt;have_posts()) {
              $query-&gt;the_post();
              ?&gt;
  
              &lt;li class="span8"&gt;
                  &lt;div class="thumbnail"&gt;
                      &lt;a href="&lt;?php echo get_permalink(); ?&gt;"&gt;&lt;?php echo get_the_post_thumbnail( get_the_ID(), 'media-large-thumb' ); ?&gt;&lt;/a&gt;
                      &lt;h3&gt;
                          &lt;a href="&lt;?php echo get_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
                      &lt;/h3&gt;
                  &lt;/div&gt;
              &lt;/li&gt;
              &lt;?php
          }
      }
  
      ?&gt;
  </code></pre>