I view the other post but I found nothing, I\'m on since 3 days :
I want display 3 \'evenements\' in the order ASC
but 2018 is always before 2017
I have updated your code .Please try your updated query.
'evenements',
'posts_per_page' => 3,
'meta_key' => 'date_de_fin',
'orberby' => 'meta_value_num',
'order' => 'ASC',
'meta_query' => array(
array(
'key' => 'date_de_fin',
'value' => $auj,
'compare' => '>=',
'type' => 'DATE'
),
)
));
?>
I have replace 'orderby' value & added 'type' parameter in meta_query.
Hope, this may be helpful to you.