This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Theatre WP | |
* Get Productions by format | |
**/ | |
// The number of productions to display | |
$productions_per_page = get_option( 'twp_spectacles_number' ); | |
$term = get_query_var( 'term' ); | |
$term_properties = get_term_by( 'slug', $term, 'format' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Theatre WP | |
* Get a paged list of productions | |
**/ | |
// The number of productions to display | |
$spectacles_per_page = get_option( 'twp_spectacles_number' ); | |
$paged = get_query_var('paged') ? intval( get_query_var('paged') ) : 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Theatre WP | |
* Get Production custom metadata | |
* within the loop | |
**/ | |
$spectacle_custom = $theatre_wp->get_spectacle_custom( get_the_ID() ); | |
/** Array returns | |
* $spectacle_custom['synopsis'] | |
* $spectacle_custom['audience'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Theatre WP performances pagination | |
function add_query_vars_filter( $vars ) { | |
$vars[] = 'upcoming'; | |
return $vars; | |
} | |
add_filter( 'query_vars', 'add_query_vars_filter' ); | |
function performances_pagination( $calendar_filter_params ) { |
NewerOlder