Forum

Thread tagged as: Question

filter question, simple I hope!

Can I have more than one item in the 'value' filter below? If so what is the correct syntax? In this example I want to include items that are 'new' and 'seconds'

 $result1 = count(perch_content_custom('Products', array(
                'skip-template'=>true,
                'page' => '/products-all.php',
                'filter' => 'sale_item',
                'match' => 'in',
                'value'=>'new',

  )));
Charlie Elsey

Charlie Elsey 0 points

  • 3 years ago
Duncan Revell

Duncan Revell 78 points
Registered Developer

It’s a comma separated list - so for your example:

’new,seconds’

So it is, thanks Duncan. I was having a senior moment ;)