Home › Forums › Calendar Products › Events Calendar PRO › second performance on same day, not displaying in month, day or ‘see all’ views
- This topic has 19 replies, 7 voices, and was last updated 9 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
December 14, 2016 at 5:24 pm #1206225
simon
ParticipantDear Andras
Adding duration to the extra shows.
Such a simple thing, I tried all sorts of different ways to enter the data to try to get the other events to appear. Wasted hours on it.
Yes that work around seems to function on the various events I tried and it’s an easy one for my staff to understand.
We currently use this bit of code (taken from your website) to make the end times disappear – hence why we stopped inputting event durations. The full functions file was attached earlier.
You can make your reply public so that others can see how to solve what was for me a very frustrating problem. Doubly so as event organisers would look for their event and not see it fully listed and ask why should we advertise if you can’t list it correctly.
Thanks for the work around, one less frustration to worry about.
Cheers
* Hide end time in list, map, photo, and single event view
* NOTE: This will only hide the end time for events that end on the same day
*/
function tribe_remove_end_time_single( $formatting_details ) {
$formatting_details[‘show_end_time’] = 0;
return $formatting_details;
}
add_filter( ‘tribe_events_event_schedule_details_formatting’, ‘tribe_remove_end_time_single’, 10, 2);
/*
* Hide end time in Week and Month View Tooltips
* NOTE: This will hide the end time in tooltips for ALL events, not just events that end on the same day
*/
function tribe_remove_end_time_tooltips( $json_array, $event, $additional ) {
$json_array[‘endTime’] = ”;
return $json_array;
}
add_filter( ‘tribe_events_template_data_array’, ‘tribe_remove_end_time_tooltips’, 10, 3 );
/*
* Hide endtime for multiday events
* Note: You will need to uncomment this for it to work
*/
function tribe_remove_endtime_multiday ( $inner, $event ) {
if ( tribe_event_is_multiday( $event ) && ! tribe_event_is_all_day( $event ) ) {
$format = tribe_get_date_format( true );
$time_format = get_option( ‘time_format’ );
$format2ndday = apply_filters( ‘tribe_format_second_date_in_range’, $format, $event );
$datetime_separator = tribe_get_option( ‘dateTimeSeparator’, ‘ @ ‘ );
$time_range_separator = tribe_get_option( ‘timeRangeSeparator’, ‘ – ‘ );
$microformatStartFormat = tribe_get_start_date( $event, false, ‘Y-m-dTh:i’ );
$microformatEndFormat = tribe_get_end_date( $event, false, ‘Y-m-dTh:i’ );
$inner = ‘<span class=”date-start dtstart”>’;
$inner .= tribe_get_start_date( $event, false, $format ) . $datetime_separator . tribe_get_start_date( $event, false, $time_format );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatStartFormat . ‘”></span>’;
$inner .= ‘</span>’ . $time_range_separator;
$inner .= ‘<span class=”date-end dtend”>’;
$inner .= tribe_get_end_date( $event, false, $format2ndday );
$inner .= ‘<span class=”value-title” title=”‘ . $microformatEndFormat . ‘”></span>’;
$inner .= ‘</span>’;
}
return $inner;
}
//add_filter( ‘tribe_events_event_schedule_details_inner’, ‘tribe_remove_endtime_multiday’, 10, 3 );December 16, 2016 at 10:11 am #1207144Brook
ParticipantSorry for the difficulties here. I am happy that solution will work in the mean time. Thanks for sharing it!
- Brook
January 26, 2017 at 9:39 pm #1224904Nico
MemberHey,
I’m reaching out to let you know that we just released a fix for this issue. Please update the plugins to version 4.4.1 (4.4.1.1 for The Events Calendar) and let us know if this actually makes the issue right in your site.
More details on the release → Maintenance Release: The Events Calendar and Event Tickets 4.4.1, plus premium add-ons
Best,
NicoFebruary 17, 2017 at 8:35 am #1240033Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘second performance on same day, not displaying in month, day or ‘see all’ views’ is closed to new replies.
