Forum

Thread tagged as: Question

Perch Categories - filter by custom id

Hey,

Is it possible to filter a category by a custom field? So I have a region of type, and I want to filter categories where type=x, using:

perch_categories([ 'filter' => 'type', 'match' => 'eq', 'value' => 'mytype' ]);

Thanks

Ryan Gittings

Ryan Gittings 1 points

  • 4 years ago

Hi Ryan,

I think it's only standard fields at the moment:

https://docs.grabaperch.com/functions/categories/perch-categories/

From that page:

Note: currently categories can only be filtered by standard fields, and not by custom fields.

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's correct.