Title: Removing import date range limit
Last modified: September 9, 2020

---

# Removing import date range limit

 *  Resolved [misssm](https://wordpress.org/support/users/misssm/)
 * (@misssm)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/removing-import-date-range-limit/)
 * Afternoon,
 * We’re using the events calendar plugin and are trying to import more than 3 months
   of events from our Office365 calendar into our WordPress plugin.
    In the Global
   Import Settings I’ve set the Import Limit Type to unlimited, from 3 months and
   run a sync, but notice we still only have 3 months worth of calendar entries.
 * But under the other URL import settings, the Import Date Range Limit will only
   go up to 3 months and I presume is overriding the global import setting.
 * Please can you advise how to remove this limit or at least extend it?
 * Thanks
    Sarah
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremoving-import-date-range-limit%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Chika Ibeneme](https://wordpress.org/support/users/chikaibeneme/)
 * (@chikaibeneme)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/removing-import-date-range-limit/#post-13390932)
 * Hi [@misssm](https://wordpress.org/support/users/misssm/) ,
 * Thanks for reaching out to us.
 * It is not really recommended to have longer import range from ‘Other URL’, as
   it might have an impact on the performance of the source site.
 * Please backup your site before attempting this.
 * If you are in control of the source site and are comfortable with the resources,
   then you can try this snippet in your functions.php file:
 * [code language="”php”"]
    function tribe_ea_yearly_limit( $option ) { $options[
   YEAR_IN_SECONDS] = array( ‘title’ =&gt; ‘One year’, ‘range’ =&gt; ‘One year’,);
   return $options; } add_filter( ‘tribe_aggregator_url_import_range_options’, ‘
   tribe_ea_yearly_limit’ ); [/code]
 * Let me know if that works.
 * Cheers,
    Chika
 *  Thread Starter [misssm](https://wordpress.org/support/users/misssm/)
 * (@misssm)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/removing-import-date-range-limit/#post-13407558)
 * Morning,
 * Thank you, I added that to our functions.php but the website then gave a critical
   error so reverted to the original functions.php
 * The limit appears to be able to be set in the plugin itself to unlimited, I don’t
   understand why that won’t apply?
 * Thanks
    Sarah
 *  [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * (@jaimemarchwinski)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/removing-import-date-range-limit/#post-13509438)
 * Hi [@misssm](https://wordpress.org/support/users/misssm/)
 * I’m sorry to hear that didn’t work for you.
 * If you set the Import Limit Type to Unlimited, that Import Date Range Limit option
   should disappear, which means that it shouldn’t be an issue there.
 * Are you seeing the same thing on your site?
 * I hope that helps!
 * Thanks,
    Jaime
 *  [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * (@jaimemarchwinski)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/removing-import-date-range-limit/#post-13539094)
 * Hey there! This thread has been inactive for a while so we’re going to go ahead
   and mark it Resolved. Please feel free to open a new thread if any other questions
   come up and we’d be happy to help.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Removing import date range limit’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [range](https://wordpress.org/support/topic-tag/range/)

 * 4 replies
 * 3 participants
 * Last reply from: [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/removing-import-date-range-limit/#post-13539094)
 * Status: resolved