Forum

Thread tagged as: Question, Problem

Auto remove a list item

I'm creating a recruitment website where I can add new vacancies with Perch. Is it possible in Perch to auto remove vacancies that are older than 30 days?

David Lee

David Lee 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, if you add a date field you can then filter the region by items newer than your cutt-off.

'filter' => 'date',
'match' => 'gte',
'value' => date('Y-m-d 00:00:00', strtotime('-30 DAYS')),