Skip Navigation

[Resolved] Sorting and viewing calendar events by dates in Repeating Field Group

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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 2 years ago.

Assisted by: Luo Yang.

Author
Posts
#2497769

Tell us what you are trying to do?

I have a CPT "calendar item" as part of an events calendar. Within this is a repeatable field group for event dates. Which works fine for displaying an individual event (see this previous thread for reference: https://toolset.com/forums/topic/performing-logic-on-repeating-field-group-using-wpv-for-loop/ )

However, the client now needs the ability to filter/sort events by the date they occur. (e.g. Events in the upcoming week, Today's Events, Only items where event_date contains "July 17", etc.) I have found a few support threads that touched on this, but all were several years old.

Is there a way to use the values contained in the repeating field group (i.e. event dates) in a view to sort/organize/filter events?

A side note: I also tried creating a separate post type "calendar event dates" and a many-to-many relationship between events and dates. However that seemed very clunky and not very user-friendly. (the public needs to be able to fill out a form to submit events, so simplicity is key).

Is there any documentation that you are following?
Some support threads: https://toolset.com/forums/topic/calendar-view-using-toolset-instead-of-an-events-plugin/
https://toolset.com/forums/topic/can-i-create-recurring-events-really-need-to/
https://toolset.com/forums/topic/repeatable-fields-date-time-sorting/
https://toolset.com/forums/topic/group-by-repeating-custom-date-field-and-sort-by-date/

What is the link to your site?
hidden link

#2497997

Hello,

The thread you mentioned above:
https://toolset.com/forums/topic/performing-logic-on-repeating-field-group-using-wpv-for-loop/
It was talking about a custom repeating field group.

But this thread title is Repeating Field Groups, they are different Toolset features.
If it is Repeating Field Groups, you can setup a post view:
- Query posts of your Repeating Field Group
- Filter by relationship of Repeating Field Group
- Order the results by your custom date field

See our document:
https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/
section "Displaying Repeatable Field Groups"