How can I limit the rows returned in a table field? I want to limit the rows returned here to 4, then if loop.index is 3 display a separator and then output the last row.

Does the table field have that kind of control?

{% for row in registration.registrationCost %}
    &lt;li class="circle"&gt;
        &lt;h3 class="registration-cost"&gt;{{ row.cost }}&lt;/h3&gt;
        &lt;hr/&gt;
        &lt;h5&gt;Through&lt;/h5&gt;
        &lt;h4&gt;{{ row.date }}&lt;/h4&gt;
    &lt;/li&gt;          
{% endfor %}
According to the Craft docs , the table field returns an array of rows.

Assuming that is the case, you should be able to use the Twig slice filter:

{% for row in registration.registrationCost | slice(0, 3) %}


You can then use a simple conditional to output the row divider:

{% if loop.index == 3 %}  
    &lt;hr&gt;  
{% endif %}


Stephen