This works:
query: site.find("recipes").children.filterBy('Categories', page)
Where the content file includes
Categories: recipe-categories/desserts
But when the content is an array the same filter does not work:
Categories: recipe-categories/desserts, recipe-categories/holidays
So I tried updating the filter to this:
query: site.find("recipes").children.filterBy(page, 'in', 'Categories', ',')
But that doesn’t work.
For reference, here’s my full field (note that I’m using the pagesdisplay plugin in order to enable filtering pages):
recipes_in_category:
headline: Recipes in Category
template: recipes-entry
type: pagesdisplay
query: site.find("recipes").children.filterBy(page, 'in', 'Categories', ',')
Any ideas?