Skip Navigation

[Résolu] Display CPT based on repeatable field value

This support ticket is created Il y a 4 années et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Ce sujet contient 1 réponse, a 1 voix.

Dernière mise à jour par Adrian Il y a 4 années et 9 mois.

Auteur
Publications
#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.