Skip Navigation

[Resolved] Sorting Events Calendar with Views

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1129296

We are using a plugin named The Events Calendar by Modern Tribe. Is there a way for Views to sort on the event date field provided by this plugin? Currently it's sorting by post date, which is not useful.

We have coders on staff, so a programatic solution is OK.

Link to a page where the issue can be seen: hidden link

#1129549

Hello,

Yes, it is possible to sort the view's result by event date field.
The Events Calendar by Modern Tribe plugin is using some hidden custom fields to store the date values.

For example, you can try these:
1) Dashboard-> Toolset-> Settings-> Front-end Content
In section "Hidden custom fields", click button "Select custom fields", enable option "_EventStartDate", and save

2) Create a post view, query "Event" posts, in section "Ordering", you will be able to see the option "_EventStartDate".