This is the piece of code I use to get event posts whom date metadata is newer than today :
<?php
query_posts( array(
'post_type' => 'concerts',
'meta_key' => 'numericdate',
'posts_per_page' => -1,
'orderby' => 'meta_value',
'order' => 'ASC',
'meta_query' => array(
array(
'key' => 'numericdate',
'value' => date('dmY'),
'compare' => '>=',
'type' => 'date'
)
)
) );
if (have_posts()) : ?>
This returned no results. The "numericdate" field contains a "ddmmyyyy" string, so I expected comparing with a "dmY" today date value will work. I was wrong. Or there is some mistake in the code above. Thanks for your help !