Event Filters No longer working on mobile

Home Forums Calendar Products Filter Bar Event Filters No longer working on mobile

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1095303
    john
    Participant

    I added the following code to my site so it would redirect to list view on mobile but now my preset links to specific venues aren’t working any longer.

    if( wp_is_mobile() ) {
    wp_redirect( tribe_get_upcoming_link() );
    }

    For instance, on desktop I have the following link that I link to with a button on another page.
    http://37.60.255.243/~renais68/sussexcountylibrary.org/events/?tribe_venues%5B%5D=77

    It works fine on desktop but the link no longer applies the filter on mobile.

    Any help would be greatly appreciated!

    #1095316
    Brook
    Participant

    Howdy John,

    Thanks for detailing what’s going on here, that was very thorough and helpful.

    I am think you could replace this:

    tribe_get_upcoming_link()

    with this:

    add_query_arg(
    array( 'tribe_venues[]' => get_query_var('tribe_venues') ),
    tribe_get_upcoming_link()
    );

    I haven’t tested that yet, but the principle is certainly sound. Does that work for you?

    Cheers!

    – Brook

    #1101981
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Event Filters No longer working on mobile’ is closed to new replies.