We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

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

  • 1 year 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 ;)