Join us in Montréal on September 18-20 for Dot All 2019, the official Craft developer conference!

Displaying Entries Related to a Category

You can fetch the entries related to a given category with a little help from the relatedTo param.

{# Fetch all of the entries related to this category #}
{% set entries = craft.entries.relatedTo(category).all() %}

{# Output them #}
{% for entry in entries %}
    <a href="{{ entry.url }}">{{ entry.title }}</a>
{% endfor %}