I need multiple filters for Events. I don't think this is possible yet, so I was going to try to do it myself using 'split-items' and then iterating. I can't seem to get 'split-items' to output as an array, though. I'm doing this:
$array = perch_events_custom([ 'sort'=>'eventDateTime', 'sort-order'=>'DESC', 'template'=>'events/event.html', 'split-items'=>true ]); echo '<pre>'; print_r($array); echo '</pre>';
But it's just outputting to the page as usual, as if 'split-items' wasn't even there. Then between <pre></pre> there is nothing. Am I doing this wrong?
Want to reply to this thread?Login with Perch