Is there a way to import events up to 12 months in the future instead of three?

Home Forums Calendar Products Event Aggregator Is there a way to import events up to 12 months in the future instead of three?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1529892
    Diane
    Participant

    I would like to import events up to 12 months in the future on some of my EA feeds. The Settings>Import Date Limit has a high range of three months. Can that be changed? or a workaround?

    Thank you, Diane

    #1530027
    Cliff
    Member

    Hi. You could use theĀ tribe_aggregator_import_range_default filter, located in this file: /wp-content/plugins/the-events-calendar/src/Tribe/Aggregator/Settings.php

    You could try this code:

    https://gist.github.com/cliffordp/6090c1051c82130f093bfcb2b60621d5

    Your import(s) might need to removed and re-added for this to take effect.

    As the code is untested, please let me know if it works for you.

    Please reference https://theeventscalendar.com/knowledgebase/implementing-custom-code-snippets/ for how to implement custom code snippets.

    Please let me know how this goes for you.

    #1530203
    Diane
    Participant

    I tried this, but my site did not load after editing the settings.php file with the code (although I may not have done it properly).

    I reloaded the original settings.php file and the site worked just fine.

    I will have my website technical genius take a gander at this with your code, because I am uncertain as to whether I edited the file properly or not – I have VERY limited experience in this – just enough to be sure to save the original before implementing anything…

    I will let you know after my tech man tries what happens. Thank you for your assistance.

    Diane

    #1530291
    Cliff
    Member

    settings.php definitely isn’t the file to modify.

    Please do have your code wrangler give it a look and report back.

    Thank you.

    #1546557
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Is there a way to import events up to 12 months in the future instead of three?’ is closed to new replies.