Show a production only once on a given day
-
As you will see on the page, if an event has multiple showtimes in one day, it displays the production multiple times. This is HIGHLY undesirable.
I’m currently working with this:
function usfrida_wpt_calendar() { global $wp_theatre; $events = $wp_theatre->events; $args = [ 'paginateby' => ['month'], 'groupby' => 'day', 'start' => 'now', 'template' => '{{thumbnail|permalink}} {{title|permalink}} {{tickets}} {{datetime|date("g:i a")}} {{excerpt}}' ]; return $events->get_html( $args ); }
When I try to do this with productions rather than events, it looks the way we want, but displays only 5:00pm for everything. Shortcodes accomplish the same result.
I know that displaying a production with all its showtimes only once per day can be done because I see it on your other customers’ sites. This functionality should be easy to use, but it’s a puzzle that requires poring through all of your code to find — and not finding it.
The page I need help with: [log in to see the link]
- The topic ‘Show a production only once on a given day’ is closed to new replies.