Calendar update broke Canvas magazine slider

Home Forums Calendar Products Events Calendar PRO Calendar update broke Canvas magazine slider

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #80573
    Debra Gallek
    Participant

    I tried adding two different fix snippets separately to functions.php:
    — snippet 1 —–
    add_action( ‘parse_query’, ‘tribe_fix_tag_query’ );
    function tribe_fix_tag_query( $query ) {
    if ( $query->is_tag && (array) $query->get( ‘post_type’ ) != array( TribeEvents::POSTTYPE ) ) {
    if ( empty( $query->query_vars[‘post_type’] ) ) {
    $query->query_vars[‘post_type’] = array( ‘post’ );
    }
    }
    }

    — snippet 2 —–
    add_action( ‘parse_query’, ‘tribe_fix_tag_query’ );
    function tribe_fix_tag_query( $query ) {
    if ( $query->is_tag && (array) $query->get( ‘post_type’ ) != array( TribeEvents::POSTTYPE ) ) {
    if ( empty( $query->query_vars[‘post_type’] ) || (‘any’ == $query->query_vars[‘post_type’]) ) {
    $query->query_vars[‘post_type’] = array( ‘post’ );
    }
    }
    }

    but no joy.
    Canvas Version 5.2.4

    #80581
    Debra Gallek
    Participant

    non-Event Calendar “tag” is showing up in Calendar widget. see: http://lwvccpa.org/wp-content/uploads/2013/12/tags.jpg

    #80795
    Debra Gallek
    Participant

    Okay, this is fixed — there was a typo that was hanging things up. Snippet 1 fixed my problem

    #80807
    Barry
    Member

    Hi dgallek: just to confirm, you’re all sorted here?

    #80813
    Debra Gallek
    Participant

    Yes, thank you!

    #80824
    Barry
    Member

    Excellent!

    #982545
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Calendar update broke Canvas magazine slider’ is closed to new replies.