Forum Replies Created
-
AuthorPosts
-
August 10, 2016 at 1:05 am in reply to: Cannot limit number of upcoming events with shortcode & mini calendar #1149876
Riccardo
ParticipantYes, Cliff. Problem solved! Thanks
August 9, 2016 at 8:14 am in reply to: Pro Widget Shortcodes – How to include uncategorized events? #1149421Riccardo
ParticipantBTW for the main calendar I am using pre_get_posts in my functions.php but it seems the filter is not being applied to the calendar widget
// Removes categories "staff" for non-teachers & non admin $user = wp_get_current_user(); if ( !in_array( 'teacher', (array) $user->roles ) && !current_user_can('administrator') ) { //The user has the "student" or "parent" role add_action( 'pre_get_posts', 'exclude_events_category' ); } function exclude_events_category( $query ) { if ( $query->query_vars['eventDisplay'] == 'list' && !is_tax(Tribe__Events__Main::TAXONOMY) || $query->query_vars['eventDisplay'] == 'month' && $query->query_vars['post_type'] == TribeEvents::POSTTYPE && !is_tax(Tribe__Events__Main::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) { $query->set( 'tax_query', array( array( 'taxonomy' => Tribe__Events__Main::TAXONOMY, 'field' => 'slug', 'terms' => array('staff'), 'operator' => 'NOT IN' ) ) ); } }Riccardo
ParticipantSolved replacing the code for the media library:
if ( is_admin() && !in_array( 'administrator', (array) $user->roles )){
add_filter( 'ajax_query_attachments_args', 'exclude_admin_media', 1, 1 );
}function exclude_admin_media( $query ) {
$query['author'] = '-1'; // exclude admin media return $query;
}
Riccardo
ParticipantI have fixed the problem, it was an ill beahved script in my functions.php
Riccardo
ParticipantI am attempting to debug…. in Chrome incognito mode (all extension disabled) I click on the next month in calendar and wp-admin/admin-ajax.php is loaded:
Headers:
Request URL:http://ghiandalocal.com/wp-admin/admin-ajax.php Request Method:POST Status Code:200 OK Remote Address:127.0.0.1:80 Response Headers view source Access-Control-Allow-Credentials:true Access-Control-Allow-Origin:http://ghiandalocal.com Cache-Control:no-cache, must-revalidate, max-age=0 Connection:Keep-Alive Content-Type:application/json Date:Thu, 04 Aug 2016 22:01:17 GMT Expires:Wed, 11 Jan 1984 05:00:00 GMT Keep-Alive:timeout=5, max=100 Pragma:no-cache Server:Apache/2.4.18 (Win32) PHP/7.0.4 Transfer-Encoding:chunked X-Content-Type-Options:nosniff X-Frame-Options:SAMEORIGIN X-Powered-By:PHP/7.0.4 X-Robots-Tag:noindex Request Headers view source Accept:*/* Accept-Encoding:gzip, deflate Accept-Language:en,it;q=0.8,en-GB;q=0.6 Cache-Control:no-cache Connection:keep-alive Content-Length:62 Content-Type:application/x-www-form-urlencoded; charset=UTF-8 Cookie:PHPSESSID=2hsta381knfpd18unibvr3ul90 Host:ghiandalocal.com Origin:http://ghiandalocal.com Pragma:no-cache Referer:http://ghiandalocal.com/events/ User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 X-Requested-With:XMLHttpRequest Form Data view source view URL encoded action:tribe_calendar eventDate:2016-09 tribe-bar-date:2016-09 Name admin-ajax.php 1 requests ❘ 24.4 KB transferred Console Animations Preserve logResponse:
<style type="text/css">#slugdiv, #edit-slug-box, [for="slugdiv-hide"], #share-this-and-number-related { display: none; }</style> {"html":"\n<div id=\"tribe-events-content\" class=\"tribe-events-month\">\n\n\t<!-- Month Title -->\n\t\t<h2 class=\"tribe-events-page-title\">Events for September 2016<\/h2>\n\t\n\t<!-- Notices -->\n\t\n\t<!-- Month Header -->\n\t\t<div id=\"tribe-events-header\" data-title=\"Events for September 2016 – – Acorn House\" data-view=\"month\" data-date=\"2016-09\" data-baseurl=\"http:\/\/ghiandalocal.com\/events\/month\/\">\n\n\t\t<!-- Header Navigation -->\n\t\t\n\n<h3 class=\"screen-reader-text\" tabindex=\"0\">Calendar Month Navigation<\/h3>\n\n<ul class=\"tribe-events-sub-nav\">\n\t<li class=\"tribe-events-nav-previous\" aria-label=\"previous month link\">\n\t\t\t<\/li>\n\t<!-- .tribe-events-nav-previous -->\n\t<li class=\"tribe-events-nav-next\" aria-label=\"next month link\">\n\t\t<a data-month=\"2016-10\" href=\"http:\/\/ghiandalocal.com\/events\/2016-10\/\" rel=\"next\">October <span>»<\/span><\/a>\t<\/li>\n\t<!-- .tribe-events-nav-next -->\n<\/ul><!-- .tribe-events-sub-nav -->\n\n\n\t<\/div>\n\t<!-- #tribe-events-header -->\n\t\n\t<!-- Month Grid -->\n\t\n\n\t<table class=\"tribe-events-calendar\">\n\t\t<thead>\n\t\t<tr>\n\t\t\t\t\t\t\t<th id=\"tribe-events-monday\" title=\"Monday\" data-day-abbr=\"Mon\">Monday<\/th>\n\t\t\t\t\t\t\t<th id=\"tribe-events-tuesday\" title=\"Tuesday\" data-day-abbr=\"Tue\">Tuesday<\/th>\n\t\t\t\t\t\t\t<th id=\"tribe-events-wednesday\" title=\"Wednesday\" data-day-abbr=\"Wed\">Wednesday<\/th>\n\t\t\t\t\t\t\t<th id=\"tribe-events-thursday\" title=\"Thursday\" data-day-abbr=\"Thu\">Thursday<\/th>\n\t\t\t\t\t\t\t<th id=\"tribe-events-friday\" title=\"Friday\" data-day-abbr=\"Fri\">Friday<\/th>\n\t\t\t\t\t\t\t<th id=\"tribe-events-saturday\" title=\"Saturday\" data-day-abbr=\"Sat\">Saturday<\/th>\n\t\t\t\t\t\t\t<th id=\"tribe-events-sunday\" title=\"Sunday\" data-day-abbr=\"Sun\">Sunday<\/th>\n\t\t\t\t\t<\/tr>\n\t\t<\/thead>\n\t\t<tbody>\n\t\t<tr>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-othermonth tribe-events-future mobile-trigger tribe-event-day-29\"\n\t\t\t\tdata-day=\"2016-08-29\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"August 29\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-29-0\">\n\n\t\t\t29\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-othermonth tribe-events-future mobile-trigger tribe-event-day-30\"\n\t\t\t\tdata-day=\"2016-08-30\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"August 30\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-30-0\">\n\n\t\t\t30\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-othermonth tribe-events-future mobile-trigger tribe-event-day-31\"\n\t\t\t\tdata-day=\"2016-08-31\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"August 31\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-31-0\">\n\n\t\t\t31\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-01\"\n\t\t\t\tdata-day=\"2016-09-01\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 1\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-1-0\">\n\n\t\t\t1\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-02 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-02\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 2\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-2-0\">\n\n\t\t\t2\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-03 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-03\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 3\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-3-0\">\n\n\t\t\t3\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-04 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-04\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 4\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-4-0\">\n\n\t\t\t4\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<\/tr>\n\t\t<tr>\n\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future tribe-events-has-events mobile-trigger tribe-event-day-05\"\n\t\t\t\tdata-day=\"2016-09-05\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 5\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-5-0\">\n\n\t\t\t<a href=\"http:\/\/ghiandalocal.com\/events\/2016-09-05\/\">5<\/a>\n\t\n<\/div>\n\n<!-- Events List -->\n\t\n<div id=\"tribe-events-event-7296-5\" class=\"tribe-events-category-term post-7296 type-tribe_events status-publish hentry tribe_events_cat-term cat_term tribe-events-last\" data-tribejson='{"i18n":{"find_out_more":"Find out more \\u00bb","for_date":"Events for"},"eventId":7296,"title":"Term Begins","permalink":"http:\\\/\\\/ghiandalocal.com\\\/event\\\/term-begins\\\/","imageSrc":"","dateDisplay":"September 5","imageTooltipSrc":"","excerpt":"","categoryClasses":"tribe-events-category-term post-7296 type-tribe_events status-publish hentry tribe_events_cat-term cat_term tribe-events-last","startTime":"September 5","endTime":"September 5"}'>\n\t<h3 class=\"tribe-events-month-event-title\"><a href=\"http:\/\/ghiandalocal.com\/event\/term-begins\/\" class=\"url\">Term Begins<\/a><\/h3>\n<\/div><!-- #tribe-events-event-# -->\n\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-06\"\n\t\t\t\tdata-day=\"2016-09-06\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 6\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-6-0\">\n\n\t\t\t6\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-07\"\n\t\t\t\tdata-day=\"2016-09-07\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 7\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-7-0\">\n\n\t\t\t7\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-08\"\n\t\t\t\tdata-day=\"2016-09-08\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 8\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-8-0\">\n\n\t\t\t8\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-09 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-09\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 9\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-9-0\">\n\n\t\t\t9\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-10 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-10\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 10\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-10-0\">\n\n\t\t\t10\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-11 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-11\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 11\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-11-0\">\n\n\t\t\t11\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<\/tr>\n\t\t<tr>\n\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-12\"\n\t\t\t\tdata-day=\"2016-09-12\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 12\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-12-0\">\n\n\t\t\t12\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-13\"\n\t\t\t\tdata-day=\"2016-09-13\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 13\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-13-0\">\n\n\t\t\t13\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-14\"\n\t\t\t\tdata-day=\"2016-09-14\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 14\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-14-0\">\n\n\t\t\t14\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-15\"\n\t\t\t\tdata-day=\"2016-09-15\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 15\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-15-0\">\n\n\t\t\t15\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-16 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-16\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 16\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-16-0\">\n\n\t\t\t16\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-17 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-17\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 17\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-17-0\">\n\n\t\t\t17\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-18 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-18\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 18\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-18-0\">\n\n\t\t\t18\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<\/tr>\n\t\t<tr>\n\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-19\"\n\t\t\t\tdata-day=\"2016-09-19\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 19\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-19-0\">\n\n\t\t\t19\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-20\"\n\t\t\t\tdata-day=\"2016-09-20\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 20\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-20-0\">\n\n\t\t\t20\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-21\"\n\t\t\t\tdata-day=\"2016-09-21\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 21\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-21-0\">\n\n\t\t\t21\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-22\"\n\t\t\t\tdata-day=\"2016-09-22\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 22\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-22-0\">\n\n\t\t\t22\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-23 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-23\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 23\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-23-0\">\n\n\t\t\t23\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-24 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-24\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 24\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-24-0\">\n\n\t\t\t24\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-25 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-25\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 25\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-25-0\">\n\n\t\t\t25\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<\/tr>\n\t\t<tr>\n\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-26\"\n\t\t\t\tdata-day=\"2016-09-26\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 26\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-26-0\">\n\n\t\t\t26\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-27\"\n\t\t\t\tdata-day=\"2016-09-27\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 27\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-27-0\">\n\n\t\t\t27\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-28\"\n\t\t\t\tdata-day=\"2016-09-28\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 28\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-28-0\">\n\n\t\t\t28\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future mobile-trigger tribe-event-day-29\"\n\t\t\t\tdata-day=\"2016-09-29\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 29\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-29-1\">\n\n\t\t\t29\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-thismonth tribe-events-future tribe-events-has-events mobile-trigger tribe-event-day-30 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-09-30\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"September 30\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-30-1\">\n\n\t\t\t<a href=\"http:\/\/ghiandalocal.com\/events\/2016-09-30\/\">30<\/a>\n\t\n<\/div>\n\n<!-- Events List -->\n\t\n<div id=\"tribe-events-event-7301-30\" class=\"tribe-events-category-all-class-reps tribe-events-category-class-reps-meeting post-7301 type-tribe_events status-publish hentry tribe_events_cat-all-class-reps tribe_events_cat-class-reps-meeting cat_all-class-reps cat_class-reps-meeting tribe-events-last\" data-tribejson='{"i18n":{"find_out_more":"Find out more \\u00bb","for_date":"Events for"},"eventId":7301,"title":"All Class Reps","permalink":"http:\\\/\\\/ghiandalocal.com\\\/event\\\/all-class-reps\\\/","imageSrc":"","dateDisplay":"September 30 @ 8:45 am - 10:00 am","imageTooltipSrc":"","excerpt":"","categoryClasses":"tribe-events-category-all-class-reps tribe-events-category-class-reps-meeting post-7301 type-tribe_events status-publish hentry tribe_events_cat-all-class-reps tribe_events_cat-class-reps-meeting cat_all-class-reps cat_class-reps-meeting tribe-events-last","startTime":"September 30 @ 8:45 am","endTime":"September 30 @ 10:00 am"}'>\n\t<h3 class=\"tribe-events-month-event-title\"><a href=\"http:\/\/ghiandalocal.com\/event\/all-class-reps\/\" class=\"url\">All Class Reps<\/a><\/h3>\n<\/div><!-- #tribe-events-event-# -->\n\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-othermonth tribe-events-future mobile-trigger tribe-event-day-01 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-10-01\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"October 1\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-1-1\">\n\n\t\t\t1\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t<td class=\"tribe-events-othermonth tribe-events-future mobile-trigger tribe-event-day-02 tribe-events-right\"\n\t\t\t\tdata-day=\"2016-10-02\"\n\t\t\t\tdata-tribejson='{\"i18n\":{\"find_out_more\":\"Find out more \\u00bb\",\"for_date\":\"Events for\"},\"date_name\":\"October 2\"}'\n\t\t\t\t>\n\t\t\t\t\n<!-- Day Header -->\n<div id=\"tribe-events-daynum-2-1\">\n\n\t\t\t2\t\n<\/div>\n\n<!-- Events List -->\n\n<!-- View More -->\n\t\t\t<\/td>\n\t\t\t\t\t<\/tr>\n\t\t<\/tbody>\n\t<\/table><!-- .tribe-events-calendar -->\n\n\t<!-- Month Footer -->\n\t\t<div id=\"tribe-events-footer\">\n\n\t\t<!-- Footer Navigation -->\n\t\t\t\t\n\n<h3 class=\"screen-reader-text\" tabindex=\"0\">Calendar Month Navigation<\/h3>\n\n<ul class=\"tribe-events-sub-nav\">\n\t<li class=\"tribe-events-nav-previous\" aria-label=\"previous month link\">\n\t\t\t<\/li>\n\t<!-- .tribe-events-nav-previous -->\n\t<li class=\"tribe-events-nav-next\" aria-label=\"next month link\">\n\t\t<a data-month=\"2016-10\" href=\"http:\/\/ghiandalocal.com\/events\/2016-10\/\" rel=\"next\">October <span>»<\/span><\/a>\t<\/li>\n\t<!-- .tribe-events-nav-next -->\n<\/ul><!-- .tribe-events-sub-nav -->\n\n\t\t\n\t<\/div>\n\t<!-- #tribe-events-footer -->\n\t<a class=\"tribe-events-ical tribe-events-button\" title=\"Use this to share calendar data with Google Calendar, Apple iCal and other compatible apps\" href=\"http:\/\/ghiandalocal.com\/events\/?ical=1\">+ Export Month's Events<\/a>\n\t\n<script type=\"text\/html\" id=\"tribe_tmpl_month_mobile_day_header\">\n\t<div class=\"tribe-mobile-day\" data-day=\"[[=date]]\">[[ if(has_events) { ]]\n\t\t<h3 class=\"tribe-mobile-day-heading\">[[=i18n.for_date]] <span>[[=raw date_name]]<\/span><\/h3>[[ } ]]\n\t<\/div>\n<\/script>\n\n<script type=\"text\/html\" id=\"tribe_tmpl_month_mobile\">\n\t<div class=\"tribe-events-mobile tribe-clearfix tribe-events-mobile-event-[[=eventId]][[ if(categoryClasses.length) { ]] [[= categoryClasses]][[ } ]]\">\n\t\t<h4 class=\"summary\">\n\t\t\t<a class=\"url\" href=\"[[=permalink]]\" title=\"[[=title]]\" rel=\"bookmark\">[[=title]]<\/a>\n\t\t<\/h4>\n\n\t\t<div class=\"tribe-events-event-body\">\n\t\t\t<div class=\"tribe-events-event-schedule-details\">\n\t\t\t\t<span class=\"tribe-event-date-start\">[[=dateDisplay]] <\/span>\n\t\t\t<\/div>\n\t\t\t[[ if(imageSrc.length) { ]]\n\t\t\t<div class=\"tribe-events-event-image\">\n\t\t\t\t<a href=\"[[=permalink]]\" title=\"[[=title]]\">\n\t\t\t\t\t<img src=\"[[=imageSrc]]\" alt=\"[[=title]]\" title=\"[[=title]]\">\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t[[ } ]]\n\t\t\t[[ if(excerpt.length) { ]]\n\t\t\t<div class=\"tribe-event-description\"> [[=raw excerpt]] <\/div>\n\t\t\t[[ } ]]\n\t\t\t<a href=\"[[=permalink]]\" class=\"tribe-events-read-more\" rel=\"bookmark\">[[=i18n.find_out_more]]<\/a>\n\t\t<\/div>\n\t<\/div>\n<\/script>\n\t\n<script type=\"text\/html\" id=\"tribe_tmpl_tooltip\">\n\t<div id=\"tribe-events-tooltip-[[=eventId]]\" class=\"tribe-events-tooltip\">\n\t\t<h4 class=\"entry-title summary\">[[=raw title]]<\/h4>\n\n\t\t<div class=\"tribe-events-event-body\">\n\t\t\t<div class=\"tribe-event-duration\">\n\t\t\t\t<abbr class=\"tribe-events-abbr tribe-event-date-start\">[[=dateDisplay]] <\/abbr>\n\t\t\t<\/div>\n\t\t\t[[ if(imageTooltipSrc.length) { ]]\n\t\t\t<div class=\"tribe-events-event-thumb\">\n\t\t\t\t<img src=\"[[=imageTooltipSrc]]\" alt=\"[[=title]]\" \/>\n\t\t\t<\/div>\n\t\t\t[[ } ]]\n\t\t\t[[ if(excerpt.length) { ]]\n\t\t\t<div class=\"tribe-event-description\">[[=raw excerpt]]<\/div>\n\t\t\t[[ } ]]\n\t\t\t<span class=\"tribe-events-arrow\"><\/span>\n\t\t<\/div>\n\t<\/div>\n<\/script>\n\n<\/div><!-- #tribe-events-content -->\n","success":true,"view":"month"}Riccardo
ParticipantI have installed Ajax debugger chrome extension and in the console I have trapped one error about font-awesome
“Font from origin ‘http://www.mysite’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin is therefore not allowed access.
I have adjusted the code in the header accordingly. Now there’s no error and the calendar is working in Chrome but not working in IE11, Edge & Firefox….
If you could instruct me where to go using the chrome debugger….
Riccardo
ParticipantHi Geoff, I think I have badly explained the situation: with WP default themes the widget will work. It won’t work with my custom theme. I strongly suspect it is an Ajax-related problem. Is there a path to follow to debug ajax conflicts?
Riccardo
ParticipantI have reverted to php 5.6 and the problem occurs as always. Then I have reverted to PHP 7 and tried again to use twenty sixteen theme and works fine (all plugins enabled). Looks like a potential issue with my theme. What can I try to identify what is bothering calendar load?
Riccardo
ParticipantThank you Geoff I was wondering if is there a way to attempt to fix this problem, particularly if the consumer base could benefit making the switch to PHP 7. I’d be glad to help debugging
Riccardo
ParticipantYes I will follow the shortcode approach.
Thanks for helping CliffRiccardo
ParticipantI see this is a “common” problem https://theeventscalendar.com/support/forums/topic/event-list-widget-and-pagebuilder/
and
in my case the conflict is on the calendar widget but it may be similar….
-
This reply was modified 9 years, 9 months ago by
Riccardo.
Riccardo
ParticipantAhhh I see where the problem is! I am using the widget in a Siteorigin pagebuilder row/cell, and the behaviour of the widget is different when running in the sidebar and when running in the row…..
Who knows why the widget is behaving in a different way in the row…..
Riccardo
ParticipantAt the time of writing, there are still enough glitches with that version of PHP that we can’t claim full compatibility.
Well people at Tribe shouldn’t advertise this product in this way….

Anyhow, if there’s problem let’s try to fix it. As I wrote I absolutely cannot downgrade to PHP 5.x, so I would appreciate your help to find a solution
Thanks
-
This reply was modified 9 years, 9 months ago by
Riccardo.
Riccardo
ParticipantCould yo tell me if you can select multiple categories within the widget dropdown list? I suspect you can’t too…
Riccardo
ParticipantCliff the plugin is activated, I can see the dropdown list however I can only select one category, not multiple categories see here: https://s31.postimg.org/qek257z0b/Untitled.jpg
-
This reply was modified 9 years, 9 months ago by
Riccardo.
-
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
