• Resolved mikebravostudio

    (@marcussunday)


    Amazing plugin, thank you.

    Currently using:

    [wpt_productions]{{thumbnail|permalink}}<br /><h3>{{title|permalink}}</h3><p>{{dates}}<br />{{excerpt}}</p>[/wpt_productions]

    which is achieving the majority of what I want to do.

    However, is there a way of grouping productions as above, but listing each actual event rather than the span of dates…

    Eg:

    [thumbnail]
    [Movie Name]
    [Date and time showing one]
    [Date and time showing two]
    [Date and time showing three]
    [Excerpt]

    Also, having played around, I’m at a loss as to how to manipulate the above into a grid — averagely comfortable hacking some code, any tips hugely appreciated, thank you.

    https://www.ads-software.com/plugins/theatre/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeroen Schmit

    (@slimndap)

    Currently you can only achieve this by writing a filter (in your functions.php).

    Something like this (untested!):

    function my_custom_wpt_production_dates_html($html, $production) {
      $html = '';
      foreach ($production->events() as $event) {
        $args = array('html'=>true);
        $html.= $event->datetime($args);
      }
      return $html;
    }
    
    add_filter('wpt_production_dates_html','my_custom_wpt_production_dates_html',10,2);
    Plugin Author Jeroen Schmit

    (@slimndap)

    Creating a grid can probably be done in CSS.

    Something like (untested again!):

    .wpt_productions {
      overflow: auto;
    }
    
    .wpt_productions .wpt_theatre_prod {
      float: left;
      width: 50%;
    }
    Thread Starter mikebravostudio

    (@marcussunday)

    Superb support, thank you!

    Although I couldn’t get the grid to work, I’ve ditched it for now, but the extra formatting via the filter worked like a dream and has massively helped.

    Thank you again, people like you make WordPress what it is — I owe you a beer or two!

    Plugin Author Jeroen Schmit

    (@slimndap)

    Cool and thanks for the review!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Grid productions together with date and time’ is closed to new replies.