Forum

Thread tagged as: Question, PayPal

Get products that belong in category 'A' and 'B'

Hello,

How would I go about retrieving a list of products that belong in both category 'A' AND 'B'

For example, I have three categories (A,B and C) and I want to create a page which lists the products which appear in both A and B.

Hope this makes sense!

Thanks,

Stuart

Stuart Christie

Stuart Christie 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Set the category-match option

 'category-match' => 'all',

or

 'category-match' => 'any',

Hi Drew,

Thank you for your reply. Would you be able to give me an example of how to use this in perch_shop_custom?

Thanks

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's not an option for that in perch_shop_custom() yet I'm afraid.