Forum Replies Created
-
AuthorPosts
-
August 3, 2016 at 8:38 am in reply to: Should I use W3 Total cache with The Events Calendar Pro? #1147088
Lucy
Participant– P.S – one thing the page speed tests tell me to do is concatenate my js and css files – and again I am wondering how this affects the Events calendar plugin
Lucy
ParticipantHello, yes they are 2 different random days, with different times:-
29th July 10.30am – 1.30pm
3rd September 12.00am – 2.00pm– I can’t seem to be able to achieve this as a recurring event either by the ‘Date’ or ‘Custom’ recurring options.
And as you say – if we had a different time options on the ‘Date’ recurring event option that would solve my problem! is this something that isn’t possible right now with the plugin?
Thanks
LucyLucy
ParticipantHI Andras,
I tried turning all my plugins off and on, and commenting out my functions.php file code by code – but nothing worked – so I had a another Google around and found this post where it’s done slightly differently – and it worked:-
Thanks very much for your time,
LucyJuly 5, 2016 at 7:41 am in reply to: Change /event/ part of URL on single page in line with category #1135438Lucy
ParticipantHI Brook,
Thank for your reply.
I think i’ll take your advise and not change the URLs of the event posts, as I don’t want to risk messing anything up! I will look at other ways I can improve my 301 redirects / SEO.Thanks again,
LucyJuly 5, 2016 at 7:10 am in reply to: Day list view – time order scrambled when click < Previous day or > Next day #1135424Lucy
ParticipantThank you for this – I found it was the Post Types Order plugin that was causing the problem, so i removed it.
ThanksLucy
ParticipantHI Andras,
Yes I removed the closing ?> php tag form my functions files as i understand that is not needed, but this does not stop the code you gave me breaking the site when i add it.
Here is my system information as you asked – does this give you any more information in to what the problem could be?
HOME URL
http://lucyryderdev.uk/yoganew
SITE URL
http://lucyryderdev.uk/yoganew
INSTALL KEYS
events-calendar-pro = 90913cb97048d944d43e5a831b850a6f21049d4d
WORDPRESS VERSION
4.5.3
PHP VERSION
5.6.22
PLUGINS
Gravity Forms version 2.0.2 by rocketgenius(http://www.rocketgenius.com)
Admin Menu Editor version 1.6.2 by Janis Elsts(http://w-shadow.com/blog/)
Advanced Custom Fields PRO version 5.3.9.2 by Elliot Condon(http://www.elliotcondon.com/)
Akismet version 3.1.11 by Automattic(https://automattic.com/wordpress-plugins/)
Duplicate Post version 2.6 by Enrico Battocchi(http://lopo.it)
The Events Calendar PRO version 4.2.1 by Modern Tribe, Inc.(http://m.tri.be/20)
Find and Replace All version 1.0 by Taraprasad Swain(http://www.taraprasad.com)
Google Analytics by MonsterInsights version 5.5 by MonsterInsights(https://www.monsterinsights.com/)
Gravity Forms MailChimp Add-On version 3.7.1 by rocketgenius(http://www.rocketgenius.com)
Post Expirator version 2.1.4 by Aaron Axelsen(http://postexpirator.tuxdocs.net/)
WordPress Post Type Archive Links version 1.3.1 by Stephen Harris(https://github.com/stephenharris/)
Post Types Order version 1.8.9.2 by Nsp Code(http://www.nsp-code.com)
Regenerate Thumbnails version 2.2.6 by Alex Mills (Viper007Bond)(http://www.viper007bond.com/)
Simple Tooltips version 2.1.3 by Justin Saad(http://www.clevelandwebdeveloper.com)
SlickNav Mobile Menu version 1.7.5 by Neil Gee(http://wpbeaches.com)
The Events Calendar version 4.2.1.1 by Modern Tribe, Inc.(http://m.tri.be/1x)
TinyMCE Advanced version 4.3.10.1 by Andrew Ozz(http://www.laptoptips.ca/)
WCK – Custom Fields and Custom Post Types Creator version 1.2.9 by Cozmoslabs, Madalin Ungureanu, Cristian Antohe(http://www.cozmoslabs.com)
Yoast SEO version 3.3.4 by Team Yoast(https://yoast.com/)
WP-Optimize version 1.9.1 by Ruhani Rabin(https://github.com/ruhanirabin/WP-Optimize)
WP-Paginate version 1.3.1 by Noah Cinquini(http://www.studiofuel.com)
WP Super Cache – Clear all cache version 1.3.1 by Apasionados.es(http://apasionados.es/)
NETWORK PLUGINS
–
MU PLUGINS
–
THEME
–
MULTISITE
–
SETTINGS
schema-version = 4.2.1.1
recurring_events_are_hidden = exposed
previous_ecp_versions =
Array
(
[0] => 0
[1] => 4.1.2
[2] => 4.1.3
[3] => 4.1.4
[4] => 4.2
[5] => 4.2.1
)
latest_ecp_version = 4.2.1.1
last-update-message = 4.1.4
disable_metabox_custom_fields = hide
pro-schema-version = 4.2.1
earliest_date = 2016-06-01 19:35:00
earliest_date_markers =
Array
(
[0] => 343
)
latest_date = 2016-11-20 20:00:00
latest_date_markers =
Array
(
[0] => 1819
)
stylesheetOption = tribe
tribeEventsTemplate =
tribeEnableViews =
Array
(
[0] => month
[1] => week
)
viewOption = month
tribeDisableTribeBar = 1
hideLocationSearch = 1
hideRelatedEvents = 1
week_view_hide_weekends =
monthEventAmount = 3
enable_month_view_cache =
dateWithYearFormat = jS F Y
dateWithoutYearFormat = F j
monthAndYearFormat = F Y
weekDayFormat = D jS
dateTimeSeparator = @
timeRangeSeparator = –
datepickerFormat = 0
tribeEventsBeforeHTML =
tribeEventsAfterHTML =
donate-link =
postsPerPage = 25
liveFiltersUpdate =
hideSubsequentRecurrencesDefault = 1
userToggleSubsequentRecurrences =
recurrenceMaxMonthsBefore = 2
recurrenceMaxMonthsAfter = 2
showComments =
showEventsInMainLoop =
eventsSlug = timetable
singleEventSlug = event
multiDayCutoff = 00:00
defaultCurrencySymbol = £
reverseCurrencyPosition =
embedGoogleMaps =
geoloc_default_geofence = 25
geoloc_default_unit = miles
embedGoogleMapsZoom = 10
debugEvents =
tribe_events_timezone_mode = event
tribe_events_timezones_show_zone =
eventsDefaultOrganizerID = 0
eventsDefaultVenueID = 116
eventsDefaultAddress =
eventsDefaultCity =
eventsDefaultState =
eventsDefaultProvince =
eventsDefaultZip =
defaultCountry =
eventsDefaultPhone =
tribeEventsCountries =
WORDPRESS TIMEZONE
Europe/London
SERVER TIMEZONE
UTC
COMMON LIBRARY DIR
/var/sites/l/lucyryderdev.uk/public_html/yoganew/wp-content/plugins/the-events-calendar/common/src/Tribe
COMMON LIBRARY VERSION
4.2.1.1July 1, 2016 at 12:27 am in reply to: Change the > to say ‘Timetable’ instead of ‘Events Archive’ #1134371Lucy
ParticipantHi Geoff,
Thank you for your wonderful advice – that has done the trick!
Many thanks,
LucyLucy
ParticipantHI Andra,
Thank you very much for your reply. I have added this code to my functions.php file – but it is breaking the site – I get the error as per the screens hot attached, a HTTP 500 error.
Here is the rest of my functions file code if you can see if your code is clashing with anything..?
<?php // ===== Enqueue ALL Styles function styles() { // My Stylesheet wp_enqueue_style( 'styles', get_template_directory_uri() . '/style.css' ); // Flexslider wp_enqueue_style( 'flexslider', get_template_directory_uri() . '/flexslider/flexslider.css' ); // Magnific wp_enqueue_style( 'magnific', get_template_directory_uri() . '/magnific/magnific.css' ); //FontAwesome wp_enqueue_style( 'prefix-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css', array(), NULL ); //IonIcon wp_enqueue_style( 'ion-icon', get_template_directory_uri() . '/ion/ionicons.min.css', array(), NULL ); //GoogleFont wp_enqueue_style( 'pre-sans', 'https://fonts.googleapis.com/css?family=PT+Sans:400,700', array(), NULL ); } add_action( 'wp_enqueue_scripts', 'styles' ); // ===== Enqueue jQuery if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); function my_jquery_enqueue() { wp_deregister_script('jquery'); wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js", false, null); wp_enqueue_script('jquery'); } // ===== Enqueue ALL Scripts function scripts() { // Easing wp_enqueue_script( 'easing', get_template_directory_uri() . '/js/easing.js', array(), NULL, true ); // My Scripts wp_enqueue_script( 'myscripts', get_template_directory_uri() . '/js/scripts.js', array(), NULL, true ); // FastClick wp_enqueue_script( 'fastclick', get_template_directory_uri() . '/js/fastclick.js', array(), NULL, true ); // Flexslider wp_enqueue_script( 'flexslider', get_template_directory_uri() . '/flexslider/jquery.flexslider-min.js', array(), NULL, true ); wp_enqueue_script( 'flexslider2', get_template_directory_uri() . '/flexslider/jquery.flexslider-init.js', array(), NULL, true ); // Magnific wp_enqueue_script( 'magnific', get_template_directory_uri() . '/magnific/magnific.min.js', array(), NULL, true ); wp_enqueue_script( 'magnific2', get_template_directory_uri() . '/magnific/magnific.init.js', array(), NULL, true ); } add_action( 'wp_enqueue_scripts', 'scripts' ); // Remove Emojis function disable_wp_emojicons() { // all actions related to emojis remove_action( 'admin_print_styles', 'print_emoji_styles' ); remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); // filter to remove TinyMCE emojis add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' ); } add_action( 'init', 'disable_wp_emojicons' ); function disable_emojicons_tinymce( $plugins ) { if ( is_array( $plugins ) ) { return array_diff( $plugins, array( 'wpemoji' ) ); } else { return array(); } } // Add Favicon function add_favicon() { $favicon_url = site_url() . '/favicon.png'; echo '<link rel="shortcut icon" href="' . $favicon_url . '" />'; } add_action('login_head', 'add_favicon'); add_action('admin_head', 'add_favicon'); add_action('wp_head','add_favicon'); // Add custom small thumbnail size add_image_size( 'small_thumb', 70, 70, array( 'center', 'center' ) ); // Hide Admin Bar show_admin_bar( false ); // Move Yoast To Bottom of Editor Page add_filter( 'wpseo_metabox_prio', function() { return 'low';}); // Thumbnails to CPT add_theme_support( 'post-thumbnails' ); // Change Post Navigation Text add_filter( 'next_post_link' , 'my_nav_buttons_text' , 10, 4); add_filter( 'previous_post_link' , 'my_nav_buttons_text' , 10, 4); function my_nav_buttons_text($output, $format, $link, $post ) { switch ( current_filter() ) { case 'previous_post_link': $text = 'Previous post'; $rel = 'prev'; $class= 'prev'; break; case 'next_post_link': $text = 'Next post'; $rel = 'next'; $class= 'next'; break; } return sprintf('<a href="%1$s" rel="%3$s" class="%4$s" rel="nofollow">%2$s</a>' , get_permalink( $post ), $text, $rel, $class ); } // Browser Detection Body class add_filter('body_class','browser_body_class'); function browser_body_class($classes) { global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; if($is_lynx) $classes[] = 'lynx'; elseif($is_gecko) $classes[] = 'gecko'; elseif($is_opera) $classes[] = 'opera'; elseif($is_NS4) $classes[] = 'ns4'; elseif($is_safari) $classes[] = 'safari'; elseif($is_chrome) $classes[] = 'chrome'; elseif($is_IE) $classes[] = 'ie'; else $classes[] = 'unknown'; if($is_iphone) $classes[] = 'iphone'; return $classes; } // Register Navigation add_theme_support('menus'); function main_nav() { wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => '', 'container_class' => 'menu-container', 'menu_class' => 'nav-menu centered', ) ); } function register_bbm__menu() { register_nav_menus(array( // Using array to specify more menus if needed 'main-menu' => __('Main Menu', 'bbm_blank'), // Main Navigation )); } add_action('init', 'register_bbm__menu'); // Add bbm_ Blank Menu function mobile_nav() { wp_nav_menu( array( 'theme_location' => 'mobile-menu', 'container' => '', 'container_class' => 'mobile-container', 'menu_class' => 'nav-menu centered', ) ); } function register_bbm__menu2() { register_nav_menus(array( // Using array to specify more menus if needed 'mobile-menu' => __('Mobile Menu', 'bbm_blank'), // Main Navigation )); } add_action('init', 'register_bbm__menu2'); // Add bbm_ Blank Menu // ACF Options if( function_exists('acf_add_options_page') ) { acf_add_options_page(); } //Allow SVG upload function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'cc_mime_types'); // Rewrites Event Calendar Organisers to Teachers add_filter( 'tribe_events_register_organizer_type_args', function( $args ) { $args['rewrite']['slug'] = 'teachers'; return $args; } ); // Reorder Get Organisers function tribe_get_organizers_custom( $deprecated = null, $posts_per_page = -1 ) { if ( null !== $deprecated ) { _deprecated_argument( __FUNCTION__, '3.0', 'This parameter is no longer supported.' ); } $organizers = get_posts( array( 'post_type' => Tribe__Events__Main::ORGANIZER_POST_TYPE, 'posts_per_page' => $posts_per_page, 'orderby' => 'date', 'order' => 'ASC' ) ); return $organizers; } // Contact page Anji/Bridget function tribe_get_organizers_contact( $deprecated = null, $posts_per_page = -1 ) { if ( null !== $deprecated ) { _deprecated_argument( __FUNCTION__, '3.0', 'This parameter is no longer supported.' ); } $organizers = get_posts( array( 'post_type' => Tribe__Events__Main::ORGANIZER_POST_TYPE, 'posts_per_page' => $posts_per_page, 'orderby' => 'date', 'order' => 'ASC', 'post__in' => array(64, 82) ) ); return $organizers; } // Customised Events Categories function tribe_get_event_categories_custom( $post_id = null, $args = array() ) { $events_label_singular = tribe_get_event_label_singular(); $post_id = is_null( $post_id ) ? get_the_ID() : $post_id; $defaults = array( 'echo' => false, 'label' => null, 'label_before' => '<div>', 'label_after' => '</div>', 'before' => '<div class="event-cats">', 'after' => '</div>', ); $args = wp_parse_args( $args, $defaults ); $categories = tribe_get_event_taxonomy( $post_id, $args ); // check for the occurrences of links in the returned string if ( null === $args[ 'label' ] ) { $label = sprintf( /* translators: %s is the singular translation of "Event" */ _nx( '%s Category', '%s Categories', substr_count( $categories, '<a href' ), 'category label', 'the-events-calendar' ), $events_label_singular ); } else { $label = $args[ 'label' ]; } $html = ! empty( $categories ) ? sprintf( $categories ) : ''; if ( $args['echo'] ) { echo apply_filters( 'tribe_get_event_categories', $html, $post_id, $args, $categories ); } else { return apply_filters( 'tribe_get_event_categories', $html, $post_id, $args, $categories ); } } function multiple_teachers( $exclude = array() ) { $organizers = get_posts( array( 'post_type' => Tribe__Events__Main::ORGANIZER_POST_TYPE, 'posts_per_page' => -1, 'post__in' => $exclude ) ); return $organizers; } // Pre populate forms for classes enquiry function populate_dropdown($form){ // only populating drop down for form id 2 if($form["id"] == 3){ // Vars //Reading posts for the Camp Sessions post type; $args = array( 'posts_per_page' => -1, 'post_type' => 'tribe_events', 'orderby' => 'title', 'order' => 'ASC', 'tax_query' => array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'slug', 'terms' => array( 'workshops', 'community' ), 'operator' => 'NOT IN' ) ) ); $posts = get_posts ( $args ); //Creating drop down item array. $items = array(); //Adding post titles to the items array foreach($posts as $post) $items[] = array("value" => $post->post_title, "text" => $post->post_title); //Adding items to field id 14. You can get the field id by looking at the field name on the form. foreach($form["fields"] as &$field) if($field["id"] == 20 || $field["id"] == 21 || $field["id"] == 22){ $field["choices"] = $items; } return $form; } else{ return $form; } } add_filter("gform_pre_render", "populate_dropdown"); add_filter("gform_admin_pre_render", "populate_dropdown"); // Add Excerpts to Pages add_action( 'init', 'my_add_excerpts_to_pages' ); function my_add_excerpts_to_pages() { add_post_type_support( 'page', 'excerpt' ); } // Limit number of word in excerpt - call with echo excerpt(30) - change number in brackets function excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('<code>\[[^\]]*\]</code>','',$excerpt); return $excerpt; } function content($limit) { $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('/\[.+\]/','', $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } // GForm Confirmation Anchor add_filter( 'gform_confirmation_anchor', '__return_true' ); // Take 'Private' prefix off all posts marked as private add_filter( 'private_title_format', 'bl_remove_private_title' ); function bl_remove_private_title( $title ) { // Return only the title portion as defined by %s, not the additional // 'Private: ' as added in core return "%s"; } // Change the time the weekly calendarview, starts add_filter( 'tribe_events_week_get_hours', 'filter_week_hours' ); function filter_week_hours( $hours ) { $hour = 0; foreach ( $hours as $key => $formatted_hour ) { if ( $hour < 7 || $hour > 18 ) { unset( $hours[ $hour ] ); } $hour ++; } return $hours; } ?>Thank you very much,
LucyLucy
ParticipantWhoooooooooooooooooop Nico you lifesaver!
I cannot thank you enough for your time and help, this has doe the trick and I would have gone around in circles trying other stuff if you hadn’t advised me on my array just needing tweaking.
Much appreciation to you and I hope you have a great weekend, 5 stars to you!
Lucy 🙂
Lucy
ParticipantHi Nico,
Thank for the detailed reply! I have already used the tribe_get_events function to show the upcoming even ton my home page – but they are not ignoring past event posts in the loop of them as you can see on my staging site. Can you see what I am doing wring in my code?:-
<div id="upcoming-classes" class="flexslider"> <?php $args = array( 'posts_per_page' => 3, 'orderby' => 'date', 'order' => 'ASC' ); $events = tribe_get_events($args); echo '<div class="slider-events">'; foreach ($events as $event){ // vars $id = $event -> ID; $link = get_permalink($id); $title = $event -> post_title; $venue = tribe_get_venue($id); $venueLink = tribe_get_venue_link($id); $thumb = tribe_event_featured_image($id, 'full', false); $cat = tribe_get_event_categories_custom($id, $args); $eventTime = tribe_get_start_time($id); $eventDate = tribe_get_start_date($id, false, 'jS M Y'); $excerpt = $event -> post_excerpt; echo '<div class="slide-event">'; echo '<div class="events-wrapper clearfix">'; echo $thumb; echo '<div class="info">'; echo $cat; echo '<div class="event-title">'.$title.'</div>'; echo '<div class="event-excerpt">'.$excerpt.'</div>'; echo '<div class="event-time"><i class="ion-clock"></i>'.$eventTime.'</div>'; echo '<div class="event-date"><i class="ion-calendar"></i>'.$eventDate.'</div>'; echo '<div class="event-venue"><i class="ion-location"></i>'.$venueLink.'</div>'; echo '<a class="button" href="'.$link.'">Learn More</a>'; echo '</div>'; echo '</div>'; echo '</div>'; } echo '</div>'; ?> </div>Many thanks again!
LucyLucy
ParticipantThis reply is private.
Lucy
ParticipantHi Josh, thank you so much for getting back to me – you’re answer made me look back at what I had done and I have now got things working with the class showing twice in 1 day – really sorry for wasting your time but you still helped me anyway!
Thanks again 🙂
LucyMay 10, 2016 at 7:40 am in reply to: Change single event permalinks to NOT include the date #1112665Lucy
ParticipantYes I thought this might be the case, thank very much for confirming,
LucyApril 28, 2016 at 1:05 am in reply to: Changing 'Organisers' to be called 'Teachers' – to show as this in the URL #1108097Lucy
ParticipantThat’s amazing, thank very much for your help, I’ll go implement this now!
Lucy 🙂Lucy
ParticipantUpdate : I think I might have found what i’m looking for now – https://theeventscalendar.com/knowledgebase/themers-guide/
-
AuthorPosts
