People Partners - ALL Upcoming Educational Events

EDUCATIONAL EVENTS
CALENDAR OF UPCOMING EVENTS

posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = ‘Date’ AND STR_TO_DATE(wpostmeta.meta_value,’%m/%d/%Y’) >= CURDATE() AND wposts.post_status = ‘publish’ AND wposts.post_type = ‘post’ ORDER BY STR_TO_DATE(wpostmeta.meta_value,’%m/%d/%Y’) ASC “;

$events = $wpdb->get_results($querystr, OBJECT);
if ($events):
global $post;

foreach ($events as $post):
setup_postdata($post); ?>
ID, ‘Date’, true);
$newfecha= date(‘l, F j, Y’, strtotime($fecha));
$locacion= get_post_meta($post->ID, ‘Location’, true);
$linko= get_post_meta($post->ID, ‘Linko’, true);
$address= get_post_meta($post->ID, ‘Address’, true);
$time= get_post_meta($post->ID, ‘Time’, true);
$price= get_post_meta($post->ID, ‘Price’, true);
?>

.