Hi @retotito
Instead of debugging the WP_Query object, can you please debug just the $args like so:
<?php
$args = array(
'post_not_in' => array($donotrepeat),
'post_type' => 'chuchi_event',
'meta_key' => 'event_datum',
'orderby' => 'meta_value',
'order' => 'dsc',
'posts_per_page' => 10,
'meta_query' => array(
'key' => 'event_datum',
'value' => date('yymmdd'),
'compare' => '<=',
'type' => 'DATE'
)
);
echo '<pre>';
print_r( $args );
echo '</pre>';
die;
$events = new WP_Query($args);
?>
P.S. Please wrap all code in the code buttons
Thanks
E