The Events Calendar includes a nifty option to export the events on your calendar in a flash. Visit your calendar and you’ll notice a button at the bottom. Refer to the Subscribing and Exporting Events article for details on the basic functionality.
By default, clicking that button will give you the next 30 events. This limit is in place because larger files are more likely to fail in iCal readers. That said, it is possible to change the number of exported events if you need to.
Usage
Copy the below code into your theme’s functions.php
file, or wherever you usually put custom code.
Plugins
The Events Calendar
Snippet
add_filter( 'tribe_ical_feed_posts_per_page', function() { return 100; } );
This snippet will return 100 events in the export. Adjust that number to suit your needs. For some advanced export options and date ranges you might want to look at our Advanced iCal Export extension.
Notes
- Originally written in January 2019
- Tested with The Events Calendar 4.5.2.1
- Author: András Guseo