Forum

Thread tagged as: Question

Filtering categories by sets

Hi Guys,

I have the following code;

                    perch_categories([
                        'template'          => '_sitemap_stories'
                    ]);

How is it possible to exclude specific sets? I want to exclude a set called news. or Rather I want to only include two sets called age-group and diagnosis.

Is this possible? Couldn't find anything in the docs.

Thanks Terry

Terry Upton

Terry Upton 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

At present you can get a list of categories from a set, but not from multiple sets. For multiple sets you'll need to combine them manually.