Sorry if this has been asked before. I've searched for other relatedTo questions but could not find anything similar.
I have 2 sections (each having 1 entry type):
- games
- reviews
Games are linked to 1 or more categories using a Categories field. Reviews are linked to 1 or more games using an Entries field.
On a category page I can list all related games using:
craft.entries({section: 'games'}).relatedTo(category)
I do however want to list all games inside a category that have at least 1 review. I tried something like
craft.entries({section: 'games'}).relatedTo(category).relatedTo(craft.entries.section('reviews'))
but that lists all games having a review regardless of the category. How to solve this?