Search code snippets, questions, articles...

relatedTo with "and"

{% set proteins = entry.ingredients.foodGroup('protein').all() %}

{% set moreRecipes = craft.entries()
  .section('recipes')
  .relatedTo(['and'] | merge(proteins))
  .all() %}
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet