I'm using the following code to hide posts in the past in wordpress (the date is coming from a custom field I've made called date) - problem is its also hiding ones set to today's date as well
<?php query_posts($query_string.'&posts_per_page=24&order=desc&orderby=meta_value&meta_key=date'); ?>
and
<?php while (have_posts()) : the_post();
$date = get_post_meta($post->ID, 'date', true);
if ($date){
$mydate = "$date";
echo date('l, j F, Y', strtotime($mydate));
}
?>
Any Ideas how to get it to allow posts where the custom field is todays date?
thanks!