where-in Modifier

Filter an array (such as a Replicator field's data) to items where a key matches specific values .

games:
-
feeling: love
title: Dominion
-
feeling: happy
title: Netrunner
-
feeling: hate
title: Chutes and Ladders
h2>I love. h2>
< games | where_in('feeling', ['love', 'happy']) >>
< title >>br>
< /games >>
Dominion
Netrunner

Docs feedback

Submit improvements, related content, or suggestions through Github.

Community

The Statamic developer community is strong. We have more than 25k users and 4,000 of them are probably chatting right now in our live Discord chat.