Satyam Saxena
Satyam Saxena

Reputation: 571

Filter channel entries by category with nested condition

How can we filter channel entries like below:

{exp:channel:entries category="1&2&3&(5|6)"}

Is it possible to use '&' and '|' together?

Upvotes: 1

Views: 177

Answers (1)

Michael Pasqualone
Michael Pasqualone

Reputation: 2037

Nested conditions isn't possible natively. Dandy Cat, a free plugin, will give you this exact functionality.

So for your example, you would do:

{exp:dandy_cat:entries categories=”(1&2&3)&(5|6)”}
    ....
{/exp:dandy_cat:entries]

Upvotes: 1

Related Questions