title: Advanced Custom Fields + Gallery Field - Show First Image from the Gallery
body: <p>I’m trying to show only one image from my gallery field as a thumbnail and when the viewer clicks it a fancybox slideshow pops up.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>&lt;?php 
      $images = get_field('gallery'); 
      $image_1 = $images[0]; 
      ?&gt;    
  
      &lt;img src="&lt;?php echo $image_1; ?&gt;" /&gt;    
  </code></pre>
  
  <p>But the HTML shows this…</p>
  
  <pre><code>&lt;img src="Array"&gt;
  </code></pre>
  
  <p>Please advise.</p>