Category calendar ical link seems to have events from other categories…

Home Forums Calendar Products Events Calendar PRO Category calendar ical link seems to have events from other categories…

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1059354
    Scott Stoddard
    Participant

    When I use the URL http://www.xxxxxxx.xxx/events/category/academic-calendar/ical to import/sync the feed into another calendar, I’m getting events that are not just the ones from the Category “academic calendar”.

    Is this a known issue?

    #1059641
    Cliff
    Member

    Hi Scott. Thanks for reporting this. I have confirmed it on my local testing site and reported the issue to our developers. They will evaluate it and hopefully fix it in the future (I cannot provide any guarantees on if or when).

    I did notice the month view iCal export included events NOT in the specified category, as you reported.

    However, the list view’s iCal export included ONLY the events in the specified category.

    So for your use case, maybe you could try using the list view’s .ics file. I hope that works for you for now.

    Please let me know how things go.

    Thanks.

    #1067681
    Brian
    Member

    Hi Scott,

    I think I narrowed down the issue for this and have a temporary fix you can use to fix the Category Month Views iCal Feeds.

    /*
    * The Events Calendar - Force Category to iCal Feed
    */
    add_filter( 'tribe_ical_feed_month_view_query_args', 'tribe_modify_month_ical_query', 10, 2 );
    function tribe_modify_month_ical_query( $args, $month ) {
    global $wp_query;
    $category = '';
    if ( isset( $wp_query->query_vars[Tribe__Events__Main::TAXONOMY]) ) {
    $category = $wp_query->query_vars[ Tribe__Events__Main::TAXONOMY ];
    }
    if ( $category ) {
    $args[ Tribe__Events__Main::TAXONOMY ] = $category;
    }
    return $args;
    }

    Adding that to your theme’s functions.php should force the iCal in month view categories to correctly only show events in that category.

    I found that if you use the next and previous event links that the export works correctly for all views, it is just the initial load creating the bug.

    Let us know if that helps.

    Thanks

    #1079898
    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 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Category calendar ical link seems to have events from other categories…’ is closed to new replies.