Hi,
Ok the above snippets describe in the other post did help me. They do the filter all right except when we get over 3 events per day.
I’ve created 3 events : “nr_ad – not-recurrent_all-day”, “nr – not-recurrent (not all day)”, “rd_ad – recurrent-day_all-day”
So when I apply the filter (first snippet by Cliff), the events of a day cell in the month view are in this order :
nr_ad – not-recurrent_all-day
nr – not-recurrent (not all day)
rd_ad – recurrent-day_all-day
Which is what we want.
But then I add a fourth event, (rw_ad – recurrent-week_all-day), the order becomes :
nr_ad – not-recurrent_all-day
rd_ad – recurrent-day_all-day
rw_ad – recurrent-week_all-day
View All 4 Events ยป
Which is not what we want because not_recurrent must come first. I should see “nr” event.
I assume that the list sent to “tribe_events_get_current_month_day” is length 3 maximum and all_day events have predominance over not_all_day. Should I apply a function on an other filter so that I send to “tribe_events_get_current_month_day” an already filtered list ? If so can you tell the name of the filter?
Thanks!
Hugues