How to limit number of entries returned from a group filter? I'm wondering how I would go about limiting the number of results returned from a set using the group filter? I only want four to show, but using the limit() method seems to throw errors wherever I put it. Here's my template code:

{% set entries = craft.entries.section('recipes').find() %}

{% for category, catEntries in entries | group('cuisineType.first().title') %}

    {% for entry in catEntries %}

       // I only want four entries shown here

    {% endfor %}

{% endfor %}
The reason limit() isn't working is that is a method on the ElementCriteriaModel you get from craft.entries. 

Because you're actually dealing with a standard array when you access catEntries, what you want instead is Twig's |slice(start, length) filter:

{% for entry in catEntries|slice(0, 4) %}

   // You'll only get four entries shown here

{% endfor %}