Skip Navigation

[Resolved] Query Filter events start date

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 4.94 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year ago.

Assisted by: Waqar.

Author
Posts
#2661283

Hello,

I have a content template that shows events from the events calendar plugin

I am trying to add a Query filter to only show current events as it is showing past events too.

Custom field filter
_EventStartDate is a number greater than or equal TODAY()

I tried the above but it didn't work.

#2661367

Hi,

Thank you for contacting us and I'd be happy to assist.

The '_EventStartDate' suggests that you're using the Events Calendar plugin.

That field doesn't store the date/time value in a UNIX timestamp format ( ref: hidden link ) which is a universally standardized way.

The Toolset's date-type custom fields and the date/time filters also use and expect the date/time values to be in the same format. Due to this difference in format, this date-type filter is failing.

To make this work, you can add a new 'Event Start Date' field in the custom field group 'Extra Event Details', which will be a 'Date' type field, and store the start date in this field too, for all the events.

Then you'll be able to use this new date field for date/time filters.

regards,
Waqar