Support » Plugin: Theater for WordPress » Show a production only once on a given day

  • Resolved darrcass

    (@darrcass)


    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.

    • This topic was modified 4 months ago by  darrcass.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • darrcass

    (@darrcass)

    Maybe I am seriously missing something, but I’m getting ready to write versions of your private methods that will accomplish what we need. Seriously though, I’m feeling like a dork because there has got to be a simpler way.

    Looking for alternatives.

    Plugin Author Jeroen Schmit

    (@slimndap)

    Hi!

    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.

    This is correct. Productions don’t have a datetime, only events do.
    A production does have a {{ dates }} placeholder which will give you a short summary of the upcoming dates.

    Another option is to use the timetable extension, which show a table with all upcoming events for every production: https://wp.theater/downloads/timetable-for-theater/

    • This reply was modified 3 months, 1 week ago by  Jeroen Schmit.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.