0

I want all categories that have at least one entry that uses it.

1
  • Luke, this is an exact duplicate of Russ's question. Feel free to provide an answer over on that thread. :) – Lindsey D Apr 14 '15 at 20:44
1

You could do it like this:

{% set categories = craft.categories.relatedTo({ sourceElement: craft.entries.limit(null) }) %}

reference: https://craftcms.slack.com/archives/help/p1429030702000608

3

Not the answer you're looking for? Browse other questions tagged or ask your own question.