Season Four: 2012

‘salon_reading’,
‘posts_per_page’ => -1,
‘post_status’ => ‘publish’,
‘meta_key’ => ‘reading_number’,
‘orderby’ => ‘reading_number’,
‘order’ => ‘DESC’,
‘meta_query’ => array(
array(
‘key’ => ‘salon_date’,
‘value’ => array( date( ‘Ymd’, strtotime( ‘20120101’ ) ), date( ‘Ymd’, strtotime( ‘20121231’ ) ) ),
‘compare’ => ‘BETWEEN’,
‘type’ => ‘DATE’
)
)
);
// The Loop
$the_query = new WP_Query( $args );
while ( $the_query->have_posts() ) {
$the_query->the_post();
$salon_date = get_field( “salon_date” );
$pretty_day = $newDate = date(“M d”, strtotime($salon_date));
$pretty_year = $newDate = date(“Y”, strtotime($salon_date));
$reading_no = get_field( “reading_number” );
$playwright = get_field( “playwright” );
$play_title = get_field( “play_title” );
$cast = get_field( “cast” );
$salon_image = get_field(‘salon_image’);

echo ‘

‘ . $pretty_day . ‘
‘ . $pretty_year . ‘

No. ‘ . $reading_no . ‘

‘ . $play_title . ‘

by ‘ . $playwright . ‘

‘ . $cast . ‘

‘;
}
/* Restore original Post Data */
wp_reset_postdata();

?>