If I have a number of recurring events, and I look at the first event (technically, the ‘post parent’), the time of the event is not shown. If I look at one of the following dates, the time is shown correctly.
I narrowed it down to what’s happening in Tribe__Events__Pro__Recurrence__Single_Event_Overrides::get_recurring_events_for_date.
Here, if event X does not have a post_parent (is the ‘main’ event), the function queries all events which have post X as parent, but also occur on the same date as X. This seems somewhat odd.
For my situation, I fixed it with the following:
$args = array(
'start_date' => tribe_beginning_of_day( $date ),
'end_date' => tribe_end_of_day( $date ),
'post_status' => $post_status,
'tribeHideRecurrence' => false,
);
if ( empty( $event->post_parent ) ) {
$args['p'] = $event->ID;
}
else {
$args['post_parent'] = $event->post_parent;
}
Please inform us if the described behavior is as expected or if you have some other fix for me. Thanks!