• Resolved mdjbrighton

    (@mdjbrighton)


    I am using php in a template to output a list of productions

    $args = array(
    'template' => '<div class="inner light-{{colours}}"><h2 class="show-listing-head {{colours}}">{{title |permalink }}</h2> {{thumbnail(show-banner-image)|permalink}}{{dates}}<p class="ShowListingText">{{short_description}}</p><p class="ShowListingText"><strong>Tickets</strong> {{cost}}</p><p class="ShowListingText"><strong>Presented by:</strong> {{artist}}</p><div class="BookTickets">
    <a href="/show-tickets/?showid={{spektrix}}&id={{ID}}">Book</a></div></div>',
    'start' => 'now',
    );
    echo $wp_theatre->productions->html($args);

    Is it possible to exude a single season. The company has a season called hires which they don’t want in their main listing.

    Alternatively would it be better to do this with a category.

    Many thanks

    https://wordpress.org/plugins/theatre/

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

    (@slimndap)

    You can limit the list to a single season by adding 'season' => 123 to your $args.
    This will however only work with a single season ID.

    Otherwise categories would be best. Eg. 'category__not_in' => 123.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude season from a list of productions’ is closed to new replies.