Array function to image list
<p>I'm using WordPress and advanced custom fields, and I want to display 3-6 images depending on which fields are selected on a Select field post type. </p>

<p>I have it so the value/variables tie into the image name, so it would display images selected based on your choices. </p>

<p>e.g. "red : Red"</p>

<pre><code>&lt;img src="example.com/images/image-&lt;?php the_field(color) ?&gt;.jpg" alt="&lt;?php the_field(color) ?&gt;"&gt;
</code></pre>

<p>Now the noob question is, when more than one field is selected, it returns an array (i.e. red, green, black.) and I can't really have the function output as an array since it won't match the image name. </p>

<p>Does anyone know how to separate an array for multiple image outputs?</p>
