$agenda = new WP_Query(array(
'post_type' => 'agenda',
'posts_per_page'=>'5',
'meta_key' => 'datum',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'meta_query'=> array(
array(
'key' => 'datum',
'compare' => '>',
'value' => date("Y-m-d"),
'type' => 'DATE'
)
),
));
setlocale(LC_TIME, 'NL_nl');
if ($agenda->have_posts()) {
?>
while ($agenda->have_posts()) : $agenda->the_post();
$datum = strtotime(get_field('datum'));
?>
Sat 14 Jun 2025
the_field('tijd'); ?>
|
Bosnie en Herzegovina – NEDERLAND (Nations League)
the_field('locatie'); ?>
|
endwhile;
?>
}
wp_reset_postdata();
?>
include('partials/share.php'); ?>