Forum
filter help please
Template snippet - users can choose to flag items as 'for sale' or 'syndicate shares available'
<perch:if exists="sale_item">
<perch:content id="sale_item" type="select" label="Choose sale or syndication" options="For sale, Syndicate shares available" allowempty="true" />
<perch:else />
</perch:if>
Trying to filter to show items that are 'for sale' AND 'syndicate shares available' ... I currently only have one option, can I have more than one option in 'value' below??? Or have I formatted filter incorrectly?
'filter' => 'sale_item',
'match' => 'eq',
'value'=>'For sale',
Hi
I think you only need to perform that test in the Perch template, full docs here)
Try this
You can also have multiple filters in an array, like this:
See "Filtering by multiple fields" on this page: https://docs.grabaperch.com/functions/content/perch-content-custom/
Not only, but also...
could work.
Ooooh yes good point Duncan - much more elegant
Thank you all so much for your help, sorry for delay in replying.