hello @ruenel,
i have trieds so. in bold the changes i have made.
in the code snippet (for the function)
$meta_query[] = array(
‘key’ => ‘start_datum’,
‘value’ => date(‘Ymd’),
‘compare’ => ‘>=’,
‘type’ => ‘DATE’
);
$tax_query[] = array(
‘taxonomy’ => ‘category’,
‘terms’ => ‘event’,
);
$query = array(
‘post_type’ => ‘post’,
‘posts_per_page’ => 20,
‘tax_query’ => $tax_query,
‘meta_key’ => ‘start_datum’,
‘orderby’ => ‘meta_value’,
‘order’ => ‘ASC’,
‘meta_query’ => $meta_query
);
var_dump( http_build_query( $query ) );
and in the looper provider as query string:
post_type=post&posts_per_page=20&tax_query%5B0%5D%5Btaxonomy%5D=category&tax_query%5B0%5D%5Bterms%5D=event&meta_key=start_datum&orderby=meta_value&order=ASC&meta_query%5B0%5D%5Bkey%5D=start_datum*
when doing so it shows the latest post, but not the articles in the category event and it seems not to take account of the ACF field ‘start_datum’.
live:
https://www.amanox.ch/de/_tmp_blog/
(on the bottom of the page how it should look like)
thanks
oli