Hi There!
So we have been using a looper with a query string for some time, and it has been working great. On our homepage it should be showing three events and it has, but now it only shows one. We have verified we have three to show and verified the query string here:
The query string is as follows:
post_type=event-detail&meta_key=event_start_date&orderby=meta_value_num&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&meta_query%5B0%5D%5Btype%5D=numeric&posts_per_page=3
It is derived from the following and replaces the event_start_date with {{dc:global:date format="Ymd"}}
$today = date('Ymd');
$meta_query[] = array(
'key' => 'wpcf-start-date',
'value' => $today,
'compare' => '>=',
'type' => 'numeric',
);
$query = array(
'post_type' => 'event-detail',
'meta_key' => 'wpcf-start-date',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'meta_query' => $meta_query,
'posts_per_page' => 3
);
var_dump( http_build_query( $query ) );
This has been working great. Did anything change on how we should create these query strings? We are up-to-date on WP and Pro.
Thank you.