The Events Calendar already provides convenient buttons with which visitors can export lists of events, as well as individual events, in iCal format.
Sometimes, though, it is nice to provide these kind of links in other posts and pages (or indeed you may wish to have more control than the default iCal buttons expose to non-coders).
[eventrocket_ical_link]
The [eventrocket_ical_link] link allows you to easily do just that – and it supports some of the same shortcode parameters as does the [event_embed] shortcode. Here’s an example:
[eventrocket_ical_link from="today" to="+1 week"]
Click here to download this week's calendar!
[/eventrocket_ical_link]
This generates a link through which visitors can download a custom, iCal-formatted dump of your calendar data. You can specify a maximum limit to the number of posts and even narrow it down to a specific category.
Here are all of the supported parameters:
- event
- from
- to
- category (or categories)
- tag (or tags)
- limit
Usage of each is essentially as per the [event_embed] shortcode.