Christopher Liu-Beers

Forum Replies Created

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • in reply to: Event new venu and date picker missing. #1199402

    I am also having the same problem. I’m on WP Engine with their Let’s Encrypt SSL enabled for both front- and back-end.

    in reply to: Show all "View As" options to visitors? #1077239

    This is helpful. Thanks!

    in reply to: Use Jetpack "Visibility" to show widget on main events page #898409

    Thanks 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.

    This reply is private.

    in reply to: Use Jetpack "Visibility" to show widget on main events page #889107

    Sure, 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.

    Sure, here’s the link: http://www.chathamartscouncil.org/calendar/
    Thanks!

    in reply to: Hide Calendar Widget when no events? #859920

    Excellent – 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.";
    }
    ?>

    in reply to: Break out single event leads to Page Not Found #139521

    I 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_type

    Then I refreshed permalinks and so far it’s working perfectly. Thanks for your help.

    in reply to: Break out single event leads to Page Not Found #139423

    No, 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.

    in reply to: Break out single event leads to Page Not Found #138739

    OK, 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.

    in reply to: Break out single event leads to Page Not Found #135916

    Thanks 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…

Viewing 11 posts - 16 through 26 (of 26 total)