Forum
Category Filtering
Hi,
I have looked in the docs but I am not clear with the example. With this code:
perch_content_custom(’T-shirts’, array(
‘category’ => array(‘size/xl’, ‘gender/male’)
));
Will it show items that match both categories (e.g. XL, Male T-shirts), or either?
The default is
any
but you can set it toall
Hm that doesn't look like it is working - I am now seeing no items, and I am sure I have some that are in both categories. Code on my page looks like this:
What does debug output?
No obvious errors, here is the output:
Strangely, this one works:
idx.itemID IN (NULL)
is intriguing.Anything I can try or shall I leave it with you :) ?
If I switch this:
to this:
It works, but obviously that is the opposite of the filter I want!
You'll have to leave it with me.
Fixed in 2.8.29 :)