Schedule

Upcoming Performances

= ‘” . date(‘Y-m-d’) . “‘”;
return $where;
}
add_filter(‘posts_where’, ‘filter_future_posts’);

$args = array(
‘posts_per_page’ => -1,
‘category_name’ => ‘schedule’,
‘post_status’ => ‘private’,
‘orderby’ => ‘post_date’,
‘order’ => ‘ASC’
);

query_posts($args);

$current_year = 0;

while ( have_posts() ) : the_post();

$year = get_the_time(‘Y’);
if( $current_year != $year )
{
echo “

“;
echo “

” . $year . “

“;
$current_year = $year;
echo “

“;
}

echo “

“;
the_time(‘M j’);
echo “
“;
the_title();
echo “

“;
echo “

“;
if ( has_post_thumbnail() ) {
the_post_thumbnail( ‘thumbnail’, array(‘class’ => ‘alignleft’) );
}
the_content();
echo “

“;

endwhile;

remove_filter(‘posts_where’, ‘filter_future_posts’);
wp_reset_query();
?>


Past Performances

-1,
‘category_name’ => ‘schedule’,
‘post_status’ => ‘private’,
‘orderby’ => ‘post_date’,
‘order’ => ‘DESC’
);

query_posts($args);

$current_year = 0;

while ( have_posts() ) : the_post();

$year = get_the_time(‘Y’);
if( $current_year != $year )
{
echo “

“;
echo “

” . $year . “

“;
$current_year = $year;
echo “

“;
}

echo “

“;
the_time(‘M j’);
echo “
“;
the_title();
echo “

“;
echo “

“;
if ( has_post_thumbnail() ) {
the_post_thumbnail( ‘thumbnail’, array(‘class’ => ‘alignleft’) );
}
the_content();
echo “

“;

endwhile;

echo “

“;

remove_filter(‘posts_where’, ‘filter_past_posts’);
wp_reset_query();
?>