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 %}