I've a got the list of events like so...
However I want to hide any event older than today's date.
How do I filter the events to only that are only greater than or equal to today's date?
I've a got the list of events like so...
However I want to hide any event older than today's date.
How do I filter the events to only that are only greater than or equal to today's date?
...I added $today_date = date('Y-m-d'); and...
Seemed to fix this.
You can directly call a php date function...
'value'=>date('Y-m-d'),
no need to add the extra variable unless you using it in a few places.