Forum Replies Created
-
AuthorPosts
-
simon
ParticipantThis reply is private.
simon
ParticipantThis reply is private.
simon
ParticipantDear Hunter
Any feedback on this problem?simon
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….
simon
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;
}?>simon
ParticipantThanks Hunter
it’s not a difficult thing to work around just means creating extra eventswith the event not appearing in the month view, do you want me to create a new thread?
simon
ParticipantDear Hunter,
Here’s a quirk…
the jay chou concert is obviously in the database, can see the events in the previous screen shots.
but it’s not in the month view http://www.bcmagazine.net/bc/events/month/?tribe-bar-date=2017-01-09
but it is in the week view http://www.bcmagazine.net/bc/events/week/2017-01-09/
and in the day view http://www.bcmagazine.net/bc/events/2017-01-09/and i have removed the exclusion day just to check if it was that
have to admit this is not something i’ve ever noticed or checked before – i check the view event and the see all, but never that the event appears in the month/week/day views. just assume it does – but obviously not.
simon
ParticipantDear Hunter
Thank you for your reply
Attached are the various screen shots as requested.i have also tested it with a brand new clean test site (with identical configuration to bc) running the new beta version from the aggregator test – only plug-ins was events pro and aggregator – exactly the same problem date exclusion problem.
Cheers
Simon
simon
ParticipantHi Geoff
Thanks for doing that.
Seems to work fine now, events are showing in the main feed and the main feed is displaying fine.
Please thank him/her for taking a look and spotting the conflict. Thank you for your help in solving the problem.
Cheers
Simon
simon
ParticipantDear Geoff
Understood, and that the wordpress changes are outside of Modern Tribe’s control
I have not ticked issue resolved, because being unable to include events in the main blog/news feed removes a large chunk of information from my readers.
I hope some new code can be posted as i’m far from the only person who wants to include events in their feed on the published date rather than the event date.
Rather than as an add on piece of code, could the option not be included in the main code of the next release? Maybe as a yes/no tick box in the sidebar when creating a new event?
Thank you for your time in locating the problem.
simon
ParticipantHi Geoff
Thanks for taking a look
lines 15-22 is the code snippet from these forum pages which displays the events in published date rather than event date
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’ );
}does this code now not work?
have removed the above lines from functions.php and all appears well
is there a revised snippet of code that displays events on the date published as opposed to the event date. From reading the forums before and again today this is a snippet that many people use.
Thank you for your help.
simon
ParticipantThis reply is private.
simon
ParticipantHi Geoff
the problem is that, since about 12 hours ago, if i have events calander pro activated – no posts at all or events appear in the main blog feed. the page is just white and says no events found in that archive.
in wordpress settings i have settings/reading -front page: show your latest posts –
this page is also set as my home pageall versions of events calander are uptodate – see attached image (from memory the last update was just a few days ago)
as a theme i’m using a child them of twenty-eleven with no complex customisation. havent changed any part of the theme for quite a while.
the error message included in the above post started occurring 04-May-2016 17:58:44 UTC – crumbs does that mean a whole day with a blank fornt page..
i have checked back to the events added on the 4 may, but cant see any obvious problems with them
cheers
simon
ParticipantHi Cliff
One recurring event creates multiple blog feed entries – see this example into the woods https://cloudup.com/cPmozxF3Qnc
I only want a recurring event to show one entry (which is what used to happen) in the blog feed.
simon
ParticipantCliff
When i put a recurring event in the calendar, i see multiple copies of the event in the blog feed.
How do i ensure that only one copy of the event appears in the blog, getting 3-27 copies of the same event in the blog feed doesnt look good
Cheers
-
AuthorPosts
