Skip Navigation

[Resolved] My Events view stopped showing results

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.

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 6 replies, has 2 voices.

Last updated by Waqar 1 year, 2 months ago.

Assisted by: Waqar.

Author
Posts
#2649377
Screenshot 2023-10-02 at 10.53.08 AM.jpg

The toolset view I created to show events (CPT) is no longer showing them and I just can't figure out why. I need some help identifying what went wrong.

This is one of the pages where the view isn't displaying: hidden link. (The "There are currently no live events scheduled for this region. Please check back for updates, or even better, sign up for updates below." text is the *no results* output text.)

I'm happy to share login credentials with you—that site I linked to is the staging site (on that note, I wish there were a way to share those credentials with you now when I'm creating the ticket instead of having to wait for your reply in order to share those—could you guys change that? It just wastes a day when access is obviously needed).

Below is a screenshot of what it should look like.

#2649527

Hi,

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

I'm setting your next reply so that you can share the temporary admin login details.

For future reference, when starting a new ticket, you'll see a section to share access details privately, below the message area.

Note: Your next reply will be private and it is recommended to make a complete backup copy before sharing the access details.

regards,
Waqar

#2650023

Thank you for sharing the access details.

In the view 'Events – Primary Events' a custom field query filter is used for the field '_EventStartDate' that is coming from the 'The Events Calendar' plugin.
( i.e. '_EventStartDate is a DATE greater than or equal NOW()' )

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.

#2650703

Thank you for looking, Waqar!

Quick question—I'm using the Modern Tribe Events Calendar's date and time fields to display event dates and times in the single event pages (see example here: hidden link and here: hidden link).

How is Toolset able to render these dates and times in the single event page, but not use that date/time information for display on an events archive page?

#2651013

Thanks for writing back.

Rendering or displaying the value from the 'The Events Calendar' plugin's fields is simpler because you just need to get it from the database and show it. There is no conversion or comparison involved in this case.

However, when filtering or sorting by those date values, Toolset expects those dates in the standard UNIX timestamp format, which unfortunately is not used by the 'The Events Calendar' plugin's fields. This is why I recommended including a Toolset's own date-type custom field.

#2651899

That makes sense—thanks for helping me understand.

#2652089

You're very welcome and glad I could help.

Please mark this ticket as resolved and start a new one for each new question or concern.