We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Filtering articles collection list by category
I'm trying to list all the articles assigned to a specific category using the following but getting no output:
perch_collection('Articles', [ 'template' =>'article-category-list.html', 'category' => 'categories/overview/good-posture/' ]);
'categories' is the set, 'overview' is a parent category and 'good-posture' a sub-category. If I remove 'category' => 'categories/overview/good-posture/' from the array, all the articles are output regardless of what category they're assigned to, as expected. Any idea why passing the category in the array doesn't work?
Want to reply to this thread?Login with Perch