Hello @3HExapaT,
Following this thread, Best Practice? Looper with custom meta date, and then modify it to suit with the Events Manager, you will have something like this:
$meta_query[] = array(
'key' => '_event_start_date',
'value' => date('Ymd'),
'compare' => '>=',
);
$query = array(
'post_type' => 'event',
'meta_key' => '_event_start_date',
'orderby' => 'meta_value',
'order' => 'ASC',
'meta_query' => $meta_query
);
And by using the @Kory’s solution from this article (Looper Query String: Featured Products), you should be getting this query string:
post_type=event&meta_key=_event_start_date&orderby=meta_value&order=ASC&meta_query%5B0%5D%5Bkey%5D=_event_start_date&meta_query%5B0%5D%5Bvalue%5D=20220624&meta_query%5B0%5D%5Bcompare%5D=%3E%3D
where the “20220624” is the date of today. And to get the current Date, you will have to use the dynamic content date “ {{dc:global:date format="Ymd"}}
” which will then gives you:
post_type=event&meta_key=_event_start_date&orderby=meta_value&order=ASC&meta_query%5B0%5D%5Bkey%5D=_event_start_date&meta_query%5B0%5D%5Bvalue%5D={{dc:global:date format="Ymd"}}&meta_query%5B0%5D%5Bcompare%5D=%3E%3D
This may not work out of the box and serves as a mere example of how you can work with the Looper Provider Query String. You can manipulate the sample query above to get the past and/or future events.
Best Regards.