<p>The default limit for fetching elements is 100. This can be overridden as follows:</p>

<pre><code>{% for block in entry.myMatrixField.limit(null) %}
</code></pre>

<p>Passing in <code>null</code> will grab all of them, or you can pass in the specific number you want:</p>

<pre><code>{% for block in entry.myMatrixField.limit(400) %}
</code></pre>

CC BY-SA 3.0
2014-07-25T15:48:34.100Z
2014-07-25T16:51:35.297Z
2014-07-25T16:51:35.297Z
user243
<p>I am looping through a matrix field and it appears to stop looping when the index reaches 100 but I have more than 100 blocks here. How can I loop through the remaining blocks?</p>

<pre><code>{% for block in entry.myMatrixField %}
    {{ loop.index }}
{% endfor %}
</code></pre>

<templating><matrix><forloop>
How can I iterate more than 100 blocks in a matrix field for loop?
# How can I iterate more than 100 blocks in a matrix field for loop?

(Asked by: username_0 on 2014-07-25)

I am looping through a matrix field and it appears to stop looping when the index reaches 100 but I have more than 100 blocks here. How can I loop through the remaining blocks?
{% for block in entry.myMatrixField %}
    {{ loop.index }}
{% endfor %}

**Tags:** templating, matrix, forloop


---

## 1 answers

### Answer by username_0 on 2014-07-25. Score: 2

The default limit for fetching elements is 100. This can be overridden as follows:
{% for block in entry.myMatrixField.limit(null) %}

Passing in null will grab all of them, or you can pass in the specific number you want:
{% for block in entry.myMatrixField.limit(400) %}


---

