Export all events

Home Forums Calendar Products Events Calendar PRO Export all events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #852172
    Erin Carter
    Participant

    Is there a way to export all events at once? Currently we can export the events in a given month but our client would like to add a button that would allow the user to export an .ics file of all the events in the calendar. Is this possible?

    #852404
    Geoff
    Member

    Hi there, Erin! Thanks for getting in touch and welcome to the forums. We hope you’re enjoying the plugin so far. 🙂

    Good question. Yes, by default, the iCal feature will export events displayed in the current view. However, you can try adding this snippet to your functions.php file to force all events into the feed.

    Will this work for you? Please let me know.

    Cheers!
    Geoff

    #852535
    Erin Carter
    Participant

    Hey Geoff,
    I tried adding the snippet into the functions.php file and there seems to be no change. Is there something else I need to do to get this hooked to the export button? What we really need is to add a second button for this functionality so our users can choose to export just this month’s events or choose to export all the events in the calendar.

    Thanks

    #853083
    Geoff
    Member

    Hey there, Erin! Thanks for following up.

    By default, the iCal feed will always correspond to the view you are in. For example, if you are in Month view, then the link will correspond to the current month at is being viewed.

    If you want to add another button next to the existing one, then you can certainly do that with some customization of the Month view template. You can create a theme override of the template and add the Month view iCal link and the List view link together:

    • Month feed:  [your-site]/events/?ical=1&tribe_display=month
    • List feed: [your-site]/events/?ical=1&tribe_display=list

    Unfortunately, that level of customization is outside the scope of what we can provide here in the forums. However, here are some materials you might want to check out:

    I’m sorry I don’t have a concrete solution to offer, but this should help get you started.

    Cheers!
    Geoff

    #889245
    Geoff
    Member

    Hey there, Erin! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to open a new thread. We’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Export all events’ is closed to new replies.