'twenties', 193 => 'thirties', 194 => 'forties', 195 => 'fifties', 196 => 'sixties', 197 => 'seventies', 198 => 'eighties', 199 => 'two-thousands', 201 => 'two-thousand-and-tens' ); $args=array( 'post_type' => 'event', 'post_status' => 'publish', 'meta_key' => 'wpcf-event-date', 'orderby' => 'meta_value_num', 'order' => 'ASC', 'posts_per_page' => -1, ); $events = null; $events = new WP_Query($args); if($events->have_posts()){ $firstdatecounter; foreach($events->posts as $post){ $date = types_render_field("event-date", array("output"=>"raw")); $datecounter = substr(date("Y", $date), 0, 3); if($datecounter != $firstdatecounter){ $decade = $dateheaders[$datecounter]; $firstdatecounter = $datecounter; if($datecounter != 192){ echo ''; } ?>
1920s
"html")); $title = get_the_title(); $maintext = types_render_field("event-text", array("raw"=>"true")); $id = get_the_id(); ?>
January 01,1970