Skip Navigation

[Resolved] TEC Pro Next Event Display

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.90 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 12 months ago.

Assisted by: Waqar.

Author
Posts
#2669073

I am trying to setup a view to display the next upcoming event from Events Calendar Pro, I have found a number of other threads with the same problem however the solution defined is not working for me. I have created a view following this exact method: https://toolset.com/forums/topic/view-ignoring-the-event-start-date-field/

The problem I am facing is that I am seeing no results found, when setting to less than it shows me all events (even future ones) and greater than returns nothing. I have gone as far as checking what query is actually being executed, and running it in phpMyAdmin works as expected.

Please let me know what else I can to to fix the problem, as I believe what I have done should work fine.

Thanks.

hidden link

#2669115

Hi,

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

The other support thread that you're referring to is very old and a number of changes have been introduced to WordPress and the involved plugins, since then.

The date fields from the Events Calendar plugin don't store the date/time values 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 in a safe and consistent way, you can add a new 'Event Start Date' field using Toolset Types, 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, in the views.

regards,
Waqar