Hi,
We are currently building a filter box for our calendar, and we are encountering an issue.
We are using tribe_get_events to fetch events between two dates, and we need to add a search string in our search.
But when we add a ‘s’ parameter, the query return an empty result.
$query = array(
‘eventDisplay’ => ‘custom’,
‘start_date’ => $year_start.’-01-01 00:01′,
‘end_date’ => $year_start.’-12-31 23:59′,
‘s’ => $search,
);
tribe_get_events($query);
The query without the ‘s’ parameter is working as expected.
We tried a standard WP_Query, with only ‘s’ and ‘post_type’ as parameters, and it was working fine.
What have we done wronge ?
Regards,
Cam