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: versteckter 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.
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
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: versteckter 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.
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: versteckter Link and here: versteckter 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?
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.
That makes sense—thanks for helping me understand.
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.