Skip Navigation

[Resolved] can i choose a cpt’s start AND end date?

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to implement repeating field group and implement post type relationship using parent and child post

Solution:
Using Types plugin you can build post type relationship.

You can find proposed solution with the following reply:
=> https://toolset.com/forums/topic/can-i-choose-a-cpts-start-and-end-date/#post-600994

Relevant Documentation:
=> https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/
=> https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/
=> https://toolset.com/documentation/user-guides/creating-post-type-relationships/

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

Our next available supporter will start replying to tickets in about 1.75 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Ido Angel 6 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#600789

hey,
i have created an "events" cpt.
i have a date for each event, but some events have multiple dates (for example a certain weekly class with 4 sessions).
i don't want to create a new event for each of these sessions, but i want the upcoming session to appear in my search (which i've already set up and works).
is there a way to create a start and end date to an event, and then have it displayed all through the time between these dates in the search results?
thanks!
ido

#600994

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I suggest you to use group of repeating fields and attach it to particular event.
=> https://toolset.com/documentation/user-guides/creating-groups-of-repeating-fields-using-fields-tables/

This needs to create parent/child relationship between your post type event and new post type sessions which will hold the session related content with start date and end date. Later you should create a view to display parent and child information.

More info:
=> https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/
=> https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/
=> https://toolset.com/documentation/user-guides/creating-post-type-relationships/

#601115

Thx Minesh!
I see your point, but still: if the search will be for "sessions" rather than "events", i might as well just create a different event for each session and give the whole "repeating group" up. also, i have only some events with more than 1 session. most are with a single date.
i think in the mean time i'll create 2 date custom fields, and will conditionally display the 2nd one (end date) if it exists.
cheers
ido