Answers.Body: <p>Because logoSlider.image is an array of images (even if there's only one image in the array) you need an additional 'for' loop to catch all of the images (not just the first or last). Try something like this:</p>
  
  <pre><code>{% for logoSlider in entry.logoSlider %} 
     {% if logoSlider.type == 'logo' %} 
       {% for image in logoSlider.image %}
         &lt;div class="column column-block"&gt;
           &lt;img src="{{image.url}}" alt="{{image.title}}" /&gt;
         &lt;/div&gt;
       {% endfor %}
     {% endif %}
   {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-08T13:02:51.037Z
Answers.LastActivityDate: 2017-06-08T13:02:51.037Z
Answers.UserDisplayName: PhilR
Body: <p>I'm trying to bring in all images from a matrix field but I can only get it to work with first() or last() but obviously it only shows 1 image. </p>
  
  <p>I've found a few article explaining it but I can't seem to get it working. </p>
  
Tags: <assets><matrix><output>
Title: Show all images from Matrix Block
ThreadText: # Show all images from Matrix Block
  
  (Asked by: username_0 on 2017-06-08)
  
  I'm trying to bring in all images from a matrix field but I can only get it to work with first() or last() but obviously it only shows 1 image.
  
  I've found a few article explaining it but I can't seem to get it working.
  
  **Tags:** assets, matrix, output
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-06-08. Score: 3 | Accepted answer
  
  Because logoSlider.image is an array of images (even if there's only one image in the array) you need an additional 'for' loop to catch all of the images (not just the first or last). Try something like this:
  
  ```
  {% for logoSlider in entry.logoSlider %} 
     {% if logoSlider.type == 'logo' %} 
       {% for image in logoSlider.image %}
         <div class="column column-block">
           <img src="{{image.url}}" alt="{{image.title}}" />
         </div>
       {% endfor %}
     {% endif %}
   {% endfor %}
  
  ```
  
  
  ---
  
  