Forum Replies Created
-
AuthorPosts
-
Christopher Liu-Beers
ParticipantI am also having the same problem. I’m on WP Engine with their Let’s Encrypt SSL enabled for both front- and back-end.
Christopher Liu-Beers
ParticipantThis is helpful. Thanks!
November 25, 2014 at 11:32 am in reply to: Use Jetpack "Visibility" to show widget on main events page #898409Christopher Liu-Beers
ParticipantThanks for this – I can see where this is going but I’m still new to PHP. Any chance you could post an example of how this might work? Much appreciated.
November 19, 2014 at 10:06 am in reply to: Move Next/Previous month links from below month calendar view to above #890782Christopher Liu-Beers
ParticipantThis reply is private.
November 18, 2014 at 7:30 am in reply to: Use Jetpack "Visibility" to show widget on main events page #889107Christopher Liu-Beers
ParticipantSure, the “Events URL slug” is “calendar”, so my main events listing is here: http://www.chathamartscouncil.org/calendar/
I am ok with trying to make this happen thru functions.php. Thanks for your help.
November 18, 2014 at 7:21 am in reply to: Move Next/Previous month links from below month calendar view to above #889095Christopher Liu-Beers
ParticipantSure, here’s the link: http://www.chathamartscouncil.org/calendar/
Thanks!Christopher Liu-Beers
ParticipantExcellent – this worked for me with some modification. I’ll post the code in case this helps anyone else…
/**
* Events Pro Mini Calendar Widget
* This is the template for the output of the mini calendar widget.
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/widgets/mini-calendar-widget.php
*
* @package TribeEventsCalendarPro
*
*/if ( !defined('ABSPATH') ) { die('-1'); } ?>
'upcoming', 'tax_query'=> array( array( 'taxonomy' => 'region', 'field' => 'slug',
'terms' => 'mountains' ))));$triangle_events = tribe_get_events(array('eventDisplay'=>'upcoming', 'tax_query'=> array( array( 'taxonomy' => 'region', 'field' => 'slug',
'terms' => 'triangle' ))));$trid_events = tribe_get_events(array('eventDisplay'=>'upcoming', 'tax_query'=> array( array( 'taxonomy' => 'region', 'field' => 'slug',
'terms' => 'triad' ))));$metrolina_events = tribe_get_events(array('eventDisplay'=>'upcoming', 'tax_query'=> array( array( 'taxonomy' => 'region', 'field' => 'slug',
'terms' => 'metrolina' ))));$sandhills_events = tribe_get_events(array('eventDisplay'=>'upcoming', 'tax_query'=> array( array( 'taxonomy' => 'region', 'field' => 'slug',
'terms' => 'sandhills' ))));$coast_events = tribe_get_events(array('eventDisplay'=>'upcoming', 'tax_query'=> array( array( 'taxonomy' => 'region', 'field' => 'slug',
'terms' => 'coast' ))));//If there are any events, show the calendar widget on a specific page
if ( (count( $mountains_events ) > 0) && is_page( 3054 )) {
tribe_show_month( array(
'tax_query' => $args['tax_query'],
'eventDate' => $args['eventDate'],
), 'pro/widgets/mini-calendar/grid' ); }if ( (count( $triangle_events ) > 0) && is_page( 3060 )) {
tribe_show_month( array(
'tax_query' => $args['tax_query'],
'eventDate' => $args['eventDate'],
), 'pro/widgets/mini-calendar/grid' ); }if ( (count( $triad_events ) > 0) && is_page( 3058 )) {
tribe_show_month( array(
'tax_query' => $args['tax_query'],
'eventDate' => $args['eventDate'],
), 'pro/widgets/mini-calendar/grid' ); }if ( (count( $metrolina_events ) > 0) && is_page( 3056 )) {
tribe_show_month( array(
'tax_query' => $args['tax_query'],
'eventDate' => $args['eventDate'],
), 'pro/widgets/mini-calendar/grid' ); }if ( (count( $sandhills_events ) > 0) && is_page( 3062 )) {
tribe_show_month( array(
'tax_query' => $args['tax_query'],
'eventDate' => $args['eventDate'],
), 'pro/widgets/mini-calendar/grid' ); }if ( (count( $coast_events ) > 0) && is_page( 3064 )) {
tribe_show_month( array(
'tax_query' => $args['tax_query'],
'eventDate' => $args['eventDate'],
), 'pro/widgets/mini-calendar/grid' ); }?>
0) && is_page( 3054 ) ) {
tribe_get_template_part( 'pro/widgets/mini-calendar/list' );
}elseif ( (count( $triangle_events ) > 0) && is_page( 3060 ) ) {
tribe_get_template_part( 'pro/widgets/mini-calendar/list' );
}elseif ( (count( $triad_events ) > 0) && is_page( 3058 ) ) {
tribe_get_template_part( 'pro/widgets/mini-calendar/list' );
}elseif ( (count( $metrolina_events ) > 0) && is_page( 3056 ) ) {
tribe_get_template_part( 'pro/widgets/mini-calendar/list' );
}elseif ( (count( $sandhills_events ) > 0) && is_page( 3062 ) ) {
tribe_get_template_part( 'pro/widgets/mini-calendar/list' );
}elseif ( (count( $coast_events ) > 0) && is_page( 3064 ) ) {
tribe_get_template_part( 'pro/widgets/mini-calendar/list' );
}else {
echo "No events at this time. Click here to view all events. Click here to add an event to the calendar.";
}
?>Christopher Liu-Beers
ParticipantI received help from the theme authors. Just for others’ reference, here are two lines in theme functions.php that I commented out:
//include_once($temp_root . ‘include/plugin/event-item.php’); // organize event element
//include_once($temp_root . ‘include/event-option.php’); // meta of event post_typeThen I refreshed permalinks and so far it’s working perfectly. Thanks for your help.
Christopher Liu-Beers
ParticipantNo, I do not want the theme’s “Events” – I want Modern Tribe’s Events! I’m trying to figure out how to disable or delete the theme’s events. I don’t know if you’ve run into this problem with other themes, if you have any guidance I’m still a PHP newbie so any help is much appreciated. Thank you.
Christopher Liu-Beers
ParticipantOK, narrowing it down here. I believe the problem is caused by a theme conflict (theme = “Real Church,” http://themes.goodlayers2.com/realchurch/). This theme comes with its own CPT of “Events.” Maybe that’s causing a conflict? I will ask their support team for help in disabling that CPT to see if that helps. Any ideas about how to proceed on this end? Thank you.
Christopher Liu-Beers
ParticipantThanks for your reply – my test site is: http://ucch.tomatillodesign.com/events. You can find a a single event (broken out of a series) for Apr 21 – Monday Night Women’s Group (http://ucch.tomatillodesign.com/event/monday-night-womens-group-2014-04-21/). Also, I have tried re-saving and changing permalinks but no luck there. Thanks for your help…
-
AuthorPosts
