title: Calling an image using ACF Select Field Type
body: <p>I am running Advanced Custom Fields on a Wordpress build and I added a <em>Select</em> Field Type to image attachments. The <em>Field Name</em> is <code>image_category</code> and I have three selections: <code>top</code>, <code>middle</code>, <code>bottom</code>. These images will be called around multiple parts of the site in different iterations. Some sections have multiple images that I want to show together but should be ordered randomly. In the bottom example, I am only calling one image that has the category <code>bottom</code> selected. This doesn't seem to find the image however, could this be a field issue? I haven't figured out how to call these images using the <code>$get_field()</code> function which in my head, seems easier than taxonomies? Any help is much appreciated!</p>
  
  <pre><code>&lt;?php // Get Banner Advertisement Posts
  $banneradverts = array(
      'posts_per_page'    =&gt; 1,
      'post_type'         =&gt; 'attachment',
      'post_status'       =&gt; 'any',
      'orderby'           =&gt; 'rand',
      'tax_query'         =&gt; array(
          array(
              'taxonomy'  =&gt; 'image_category',
              'field'     =&gt; 'slug',
              'terms'     =&gt; 'bottom',
              ),
          ),
      );
  $banners = new WP_Query( $banneradverts );
  
  while ( $banners-&gt;have_posts() ) : $banners-&gt;the_post();?&gt;
  &lt;section id="bottom"&gt;
      &lt;div class="bottom-image"&gt;
          &lt;?php echo wp_get_attachment_image( get_the_ID(), 'full'); ?&gt;
      &lt;/div&gt;
  &lt;/section&gt;          
  &lt;?php endwhile;     
  wp_reset_query(); ?&gt;
  </code></pre>