Skip Navigation

[Resolved] Display CPT based on repeatable field value

This support ticket is created 4 years, 9 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.

This topic contains 1 reply, has 1 voice.

Last updated by Adrian 4 years, 9 months ago.

Author
Posts
#1540901

I have a custom post type called "Events"
Each event can have multiple occurences (repeatable field groups)
Each occurrence has a start data and an end date.
{eventName,
{occurenceName,
occurrenceStartDate,
occurrenceEndDate}
}

I wish to display the Events based on the Occurence start date. I am ok with one event being displayed multiple times as it may have multiple occurrence start dates.

How can I Accomplish this?

Thank you,
Adrian

#1540971

I was able to figure it out.

I created a view showing the occurrences only (not linking them to their parent as the view will be displayed on its own).
I then used the repeatable fields owner under Post Selection (The post owner of the Types repeatable group field > Event) and voila.

I hope this functionality is intended and won't be removed as part of a future "fix" lol.