I did it, all conditions needed to be in the same function.
Here is my solution for the current one :
$current_date = date(‘Y-m-d’,current_time(‘timestamp’));
$conditions[‘scope’] = “(CURTIME() BETWEEN event_start_time AND event_end_time) AND event_start_date = CAST(‘$current_date’ AS DATE)”;
This needs to be in the function.php file, it is not sayed in the tutorial !
Hugo
Thanks for your answer,
I successed for the current one.
But how can I add several scope conditions ?
I tried to make a function like in the example for each condition but it is not working,
only the first one is doing it’s job.
I did’nt forget to add each function in the array at the end.
Hugo