• Resolved thartl

    (@hartl)


    I am aware that currently subscription to calendars depends on current view, if using Month view.
    It seems to lead to confusion from users. E.g. when viewing a month that is ahead, only events from that month and following months are included in the feed.
    The workaround of using list view will not work for us, so I was wondering if there is a fix on the roadmap for missed events that are in the past relative to currently viewed month.

    Additionally, I am aware that only one month is supposed to sync, so I am curious if the current “bug” will persist and keep allowing future events.
    We have already upped the feed posts_per_page via tribe_ical_feed_posts_per_page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Iris

    (@iirvin)

    Hi @hartl,

    Thanks for reaching out!

    By default, the subscription will start with the upcoming events. This is not a bug but simply intended behavior.

    You are right, only 30 events will be included and you can change that number to fit your needs: https://theeventscalendar.com/knowledgebase/k/changing-the-number-of-events-in-ical-export/

    Regardless of the number of events, new events should keep coming in when old ones have passed. However, we have an internal bug ticket open for the calendar not updating after the initial 30 events.

    The workaround for this is this snippet, copy the below code into your theme’s functions.php file, or wherever you usually put custom code.

    add_filter( 'tec_views_v2_subscribe_links_url_args', 'tec_custom_subscribe_link', 10, 2 ); 
    function tec_custom_subscribe_link ( $passthrough_args, $view ) { 
    unset( $passthrough_args['tribe-bar-date'] ); 
    
    return $passthrough_args; 
    }

    If you would like to get the whole month when subscribing to the Calendar you can alter that code a bit for the link to start on the 1st of the month:

    add_filter( 'tec_views_v2_subscribe_links_url_args', 'tec_custom_subscribe_link', 10, 2 );
    
    function tec_custom_subscribe_link ( $passthrough_args, $view ) {
    
       if ( $view->get_view_slug() == "month" ) {
          $month = date('m');
          $passthrough_args['tribe-bar-date'] = "2023-" . $month . "-01";
       }
       else {
    
       }
       return $passthrough_args;
    }

    Please note that this will always give you the first of the current month, and not the month you are on.

    I am unable to provide an exact date or time estimate for when this bug will be fixed, but you’ll be notified when there are any updates.

    If you do have other concerns or issues you need help with, please create another ticket, as it helps us track different issues.

    I hope this helps! Thank you for your patience.

    Best,
    Iris


    Internal Bug Ticket Reference:
    TEC-4584

    Thread Starter thartl

    (@hartl)

    This is great – the second version of the function (together with the tribe_ical_feed_posts_per_page filter) provides the functionality we were looking for.

    Thank you very much, @iirvin.

    Plugin Support Iris

    (@iirvin)

    Hi @hartl

    Wonderful! I am glad I could help you with this one.

    As soon as we release a fix for this issue, we will post an update here in the thread.

    If you do have other concerns or issues you need help with, please create another support topic as indicated in the www.remarpro.com support guidelines.

    Best,
    Iris

    Plugin Support Darian

    (@d0153)

    Hi @hartl

    I apologize for the late update. I just want to inform you that we have released a fix earlier this month for this issue.

    Kindly update The Events Calendar plugin to the latest version to apply the fix on your website. As always, please test it first on your staging site before applying to your live site.

    If you do have other concerns or issues you need help with, please create another support topic as indicated in the www.remarpro.com support guidelines.

    Plugin Support Darian

    (@d0153)

    Hi @hartl

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please open a new thread if any other questions arise, and we’d be happy to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Calendar subscirption dependant on current view’ is closed to new replies.