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
Perch Blog Custom Multi Filter
Does Perch Blog work with multiple filters like perch_content_custom?
I'm trying this, it's not returning a result when using both filters, but using just one of them works.
<?php $year = perch_get('year'); $dateFrom = $year.'-01-01'; $dateTo = $year.'-12-31'; perch_blog_custom(array( 'filter'=> array ( array ( 'filter' => 'postDateTime', 'match' => 'eqbetween', 'value' => $dateFrom.','.$dateTo ), array ( 'filter' => 'postSlug', 'match' => 'eq', 'value' => perch_get('s') ) ) )); ?>
Want to reply to this thread?Login with Perch