Skip Navigation

[Resolved] Dates an Locations

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Mateus Getulio 7 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2648019

I am trying to build a Filmfestival Page with Movies as CPT. These films are repeated on different days at different locations. However, only one post should be created for the same film. Example:
Film 1: September 12, 2023 in Cinema
September 13, 2023 in Cinema 2

How do I realize this, that Date 1 belongs to Cinema one in Frontent?

I would also like to filter by date and/or venue.

#2648069

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you for contacting our support.

You can achieve it by following these steps:

- Create a Custom Post Type called "Movies" where you’ll create each movie as a single post.
- Create the necessary custom fields to store additional information about each movie. For example, since movies can be shown on different dates and different cinemas, you might want to create a repeating field group consisting of:
• show_date to store the show dates
• cinema to store the cinema/location of each showing
- Create posts for each movie and add the respective dates and cinemas.
- Create a View to display the movies in the frontend. In the View, you can loop through the repeating field group to display all the dates and cinemas for each movie. You can also add filters to this View to allow users to filter movies by date and/or by cinema(location)

While searching/filtering through the repeatable field groups, please bear in mind that Toolset Repeatable Field Groups are based on one-to-many relationships, so each item of Repeatable Field Groups is also a single post. Toolset does not allow to filter two related post types at the same time. As a workaround you will have to filter the generated custom post type(date) for your repeatable field. Then you will have to display their parent post(movie) instead.
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-one-related-item-parent

Below some similar tickets that may help too:
- https://toolset.com/forums/topic/searching-repeatable-fields/
- https://toolset.com/forums/topic/filtering-a-view-by-a-date-field-in-a-repeating-field-group/
- https://toolset.com/forums/topic/best-way-to-filter-through-repeatable-fields/

Please give it a try and let us know if you find any issues implementing it.

Best,

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.