title: Multiple if statements when separate checking values
body: <p>I would like to check if the field has a value (an image in this case), and if it does, then it will display the image. I'm not sure if there is a better way to do this. I feel I'm overdoing the if statements. Suggestions?</p>
  
  <pre><code> &lt;img src="&lt;?php the_field('image_1'); ?&gt;" alt=""&gt;
  &lt;?php if (get_field('image_2')) : ?&gt;
   &lt;img src="&lt;?php the_field('image_2'); ?&gt;" alt=""&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if (get_field('image_3')) : ?&gt;
   &lt;img src="&lt;?php the_field('image_3'); ?&gt;" alt=""&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if (get_field('image_4')) : ?&gt;
   &lt;img src="&lt;?php the_field('image_4'); ?&gt;" alt=""&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if (get_field('image_5')) : ?&gt;
   &lt;img src="&lt;?php the_field('image_5'); ?&gt;" alt=""&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if (get_field('image_6')) : ?&gt;
   &lt;img src="&lt;?php the_field('image_6'); ?&gt;" alt=""&gt;
  &lt;?php endif; ?&gt;
  </code></pre>