Custom Today Filter
-
Hi guys,
I have this query that extracts events in my custom period:select * from SqE_em_events where (date( SqE_em_events.event_end_date) = curdate() and time(SqE_em_events.event_end_time) > '06:00:00' and time(SqE_em_events.event_end_time) > curtime()) or (date(SqE_em_events.event_end_date) = curdate() + interval 1 day and (time(SqE_em_events.event_end_time) <= '06:00:00')) or (date(SqE_em_events.event_start_date) = curdate() and time(SqE_em_events.event_start_time) > '06:00:00' and time(SqE_em_events.event_end_time) > curtime()) or (date(SqE_em_events.event_end_date) = curdate() and time(SqE_em_events.event_end_time) <= '06:00:00' and time(SqE_em_events.event_end_time) > curtime())I tried to add custom filter into my_functions.php file in my child theme, but with no success ( http://wp-events-plugin.com/tutorials/create-your-own-event-scope/)
My aim is create a custom shortcode to filter events in events list with this “custom TODAY”:
Can some one help me to do this filter?Thank you guys.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Custom Today Filter’ is closed to new replies.