Home › Forums › Calendar Products › Events Calendar PRO › Events not showing in Jan 2017 month view
- This topic has 17 replies, 5 voices, and was last updated 9 years, 5 months ago by
simon.
-
AuthorPosts
-
September 15, 2016 at 12:42 am #1164485
simon
ParticipantRecently entered events do no appear on the Jan 2017 month view.
They’re on the day, week views just not on the month.
They’re also there when you look at ‘view event’ and ‘see all’This same problem happens on my regular site http://www.bcmagazine.net, and on the clean install test site that i set up to run the aggregator beta rc4.3. so a little stumped as to the cause.
Events entered awhile ago are there as you can see.
Only 4 images are allowed but hope it explains the problem.
Thank you for your time
September 15, 2016 at 7:24 am #1164570Nico
MemberHi there Simon,
Thanks for reaching out to us on this!
Taking a look at the event information you set up, it seems that the events has the exact same start date/time and end date/time. If you change the end date to be one hour more, does the event display in the site?
If that doesn’t work, can you please delete the exclusion and retest? Ultimately if this is still not works please delete recurrence settings and try once again.
Please let me know about this,
Best,
NicoSeptember 16, 2016 at 11:08 am #1165296simon
ParticipantDear Nico
Thank you for the reply
Changing the event length doesn’t make a difference (does change in week view) and it’s not just this event, added another event peal street poetry into the live site and into the test site same thing not in the month view but in the week, day, and event view – see attached screen shots. I have tried switching between the three display views in the setting display panel still no view.
the january month view is unchanged http://www.bcmagazine.net/bc/events/2017-01/to make things more confusing added ‘wicked’ into both sites – it appears in january on the test site but not on the live site…
really have no idea, especially as it happens in the clean install – both are running twentysixteen theme
the only thing different from a clean install is the child functions php file – (same child function file both live and test) none of the tweaks relate to month view but have added it below for reference
Cheers
Simon
/* Add your own functions below this line.
======================================== */add_filter(‘body_class’, ‘fix_body_class_for_sidebar’, 20, 2);
function fix_body_class_for_sidebar($wp_classes, $extra_classes) {
if( is_single() || is_page() ){
if (in_array(‘singular’,$wp_classes)){
foreach($wp_classes as $key => $value) {
if ($value == ‘singular’)
unset($wp_classes[$key]);
}
}
}return array_merge($wp_classes, (array) $extra_classes);
}
add_action( ‘pre_get_posts’, ‘tribe_post_date_ordering’, 51 );function tribe_post_date_ordering( $query ) {
if ( ! empty( $query->tribe_is_multi_posttype ) ) {
remove_filter( ‘posts_fields’, array( ‘Tribe__Events__Query’, ‘multi_type_posts_fields’ ) );
$query->set( ‘order’, ‘DESC’ );
}
}function custom_widget_featured_image() {
global $post;echo tribe_event_featured_image( $post->ID, ‘thumbnail’ );
}add_action( ‘tribe_events_list_widget_before_the_event_title’, ‘custom_widget_featured_image’ );
add_filter(‘teccc_legend_html’, ‘add_legend_explanation’);
function add_legend_explanation($html) {
return ‘<div class=”legend-explanation”> To focus on events from only one of these categories, ‘
.’just click on the relevant label. </div>’
.$html;
}function wp_change_target($content){
return preg_replace_callback(‘/<a[^>]+/’, ‘wp_target_callback’, $content);
}
function wp_target_callback($matches){
$link = $matches[0];
$mu_url = get_bloginfo(‘url’);
if (strpos($link, ‘target’) === false){
$link = preg_replace(“%(href=\S(?!$mu_url))%i”, ‘target=”_blank” $1’, $link);
}elseif (preg_match(“%href=\S(?!$mu_url)%i”, $link)){
$link = preg_replace(‘/target=S(?!_blank)\S*/i’, ‘target=”_blank”‘, $link);
}
return $link;
}
add_filter(‘the_content’, ‘wp_change_target’);
/**
* Returns the contents of the event cost field without applying any
* formatting tricks.
*
* Useful in those cases where a non-standard cost values such as
* “ABC-123” is used, else they may be “mangled” by the
* Tribe__Events__Cost_Utils object.
*
* @param string $cost (unused)
* @param int $post_id
* @return string
*/
function verbatim_cost_field( $cost, $post_id ) {
return esc_html( get_post_meta( $post_id, ‘_EventCost’, true ) );
}
add_filter( ‘tribe_get_cost’, ‘verbatim_cost_field’, 10, 2 );/*
* 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 );
// Hides the iCal/Export Listed Events link from tribe archive views such as List and Month
remove_filter(‘tribe_events_after_footer’, array(‘Tribe__Events__iCal’, ‘maybe_add_link’), 10, 1);
add_filter( ‘tribe_events_community_required_fields’, ‘my_community_required_fields’, 10, 1 );function my_community_required_fields( $fields ) {
$fields = array(
‘post_title’,
‘post_content’,
‘EventCost’,
‘EventCurrencySymbol’,
‘EventURL’,
‘EventStartDate’,
‘venue’,
‘organizer’,
);// Requiring the organizer email (or other “square bracketed”
// fields) can’t be done using the above approach, but we can
// simply test within the $_POST superglobal directly.
//
// If a field hasn’t been populated then we simply add a requirement
// using a field name we know doesn’t exist, but can be used to form
// a meaningful error message (if the org email is missing the user
// will see “Organizer Email is required”).
//
// You could take this a step further and additionally validate the
// email field to ensure it looks like a valid email address and
// provide an alternative error using the same approach.
if ( empty( $_POST[‘organizer’][‘Email’] ) )
$fields[] = ‘Organizer Email’;return $fields;
}?>September 19, 2016 at 2:15 am #1165750simon
ParticipantDear Nico
Amended – events are not appearing in all months now not just January. Had only noticed January because it’s still quite empty – but added an event for this week today and realised it applies to all months
But as you can see many events are not appearing in the months view for sept – see attachment. i’ve also attached the list of events for the 22 sept- as you can see many events.
all appear in the weekly and daily views, just not in the month view. I use mainly the desk top, but the same problem occurs in mobile as well WHY?
And it’s not to do with the theme, went back my old theme twenty eleven, tried twenty fourteen. Same thing is on the clean install as well – which has no other plug-ins.Readers, venues, organisers and me are finding this really really really frustrating….
September 19, 2016 at 1:49 pm #1166070Nico
MemberThis reply is private.
September 19, 2016 at 7:04 pm #1166212simon
ParticipantThis reply is private.
September 19, 2016 at 8:48 pm #1166227simon
ParticipantThis reply is private.
September 21, 2016 at 7:12 pm #1167211Nico
MemberThis reply is private.
September 21, 2016 at 8:59 pm #1167239simon
ParticipantThis reply is private.
September 23, 2016 at 3:38 pm #1168186Nico
MemberThis reply is private.
September 26, 2016 at 1:39 am #1168629simon
ParticipantThis reply is private.
September 28, 2016 at 7:59 am #1169799Nico
MemberThis reply is private.
October 3, 2016 at 4:11 pm #1172001Nico
MemberThis reply is private.
October 3, 2016 at 5:04 pm #1172009simon
ParticipantDear Nico
Thank you for the continued follow-up.
I changed the settings to local (in events/settings/general) as you suggested and a lot more events appeared in the month view – can’t say if it’s all as have too many to check individually. But Peel Street, Jay Chou and many others did, so that’s a relief – perfectly timed to as I have a meeting with Peel Street today.
One caveat about the ‘workaround’, that’s not a setting I change (it’s a set and forget). So why did some events appear in month view, even newly entered ones, with that setting at sitewide and some didn’t? That, thankfully is something I’ll leave your coding guys to try to understand
I’m a bit snowed this week, but will check the csv import order as soon as I can.
Have left the status as still need assistance as the bug still exists.
Maybe you could post a public reply on this thread with the workaround so anyone else suffering from the problem can try it and see if it works for them.
Thank you for the licence extension and the workaround.
Hope you have a nice week
Simon
October 4, 2016 at 4:07 pm #1172500Nico
MemberStocked to hear about this Simon 🙂
I’m glad this worked (please let me know if you still see anomalies). Regarding the caveat, the above is a work around for the bug which has been logged and a dev will work on it in a future maintenance release! I’ve attached the internal report to this conversation (which will be marked as Pending Fix) so you’ll get a heads up when the fix for this is out.
Just for others to reference Simon has uncovered a bug in which events from certain timezones (Hong Kong in this case) weren’t shown in month view when using ‘site wide timezone’ mode. The work around is to change the timezone mode to ‘Use local timezone for each event’ in ‘WP-Admin > Events > Settings > General > Timezone mode’.
Thanks once again for reporting this and helping me define the bug,
Best,
Nico -
AuthorPosts
- The topic ‘Events not showing in Jan 2017 month view’ is closed to new replies.
