3

The problem is that you are doing .relatedTo(category) but the variable you are passing is called relatedTo, not category. Just like with limit, based on your code, it should be .relatedTo(relatedTo). Also, it should be part of the same hash as your limit. However, you can't pass a category object to a component and will need to pass its id instead (docs). ...


Only top voted, non community-wiki answers of a minimum length are eligible