Events |
December 2nd, 2020 |
Archived Events
See all archived CTMS events$today = date('Y-m-d h:m:s'); $news=$wpdb->get_results("SELECT `ID`,`post_title`,`post_date` FROM $wpdb->posts WHERE `post_type`=\"post\" AND `post_status`=\"publish\" AND `post_date` >= NOW() ORDER BY post_date ASC LIMIT $how_many"); if($news){ printf ("
Events Today & Upcoming
- ");}
foreach($news as $np){
$postdate = date("F jS, Y", strtotime($np->post_date));
printf ("
- " . $postdate . "
%s ", get_permalink($np->ID),$np->post_title);
} ?>