Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5966
    piotrly
    Participant

    Is there a way to insert on event’s page a button “Add to calendar” which will add current event to Google Calendar or Outlook?

    #5968
    Bartosz
    Keymaster

    It’s very simple. Just use WP native functions. For single event it’s post_comments_feed_link() (http://codex.wordpress.org/Function_Reference/post_comments_feed_link)

    echo post_comments_feed_link('Generate iCal', '', 'ical');

    We’ll provide an option for this or display ical feed links automatically in the template file – we’ll see. FOr now just go with the above.

    #5975
    piotrly
    Participant

    Thanks, but it’s not working as I expected. When I click on generated link, it just download .ics file on my hard drive. Is there a way to automatically open Google Calendar and add details of event?

    #5976
    Bartosz
    Keymaster

    Yes, you have all this described in settings – there’s an example provided, but it works like this:

    Let’s say it’s your event url:
    http://mysite.com/event/event/myevent
    so your ical feed url is:
    http://mysite.com/event/event/myevent/feed/ical

    Simply use this link in your Google Calendar.

    #5977
    piotrly
    Participant

    Thank you, I already read it in settings. Sorry for being not very precise, but my problem is that when I click url [my event]/feed/ical I can just download ics file. Instead downloading file, I would like to open url with new event on Google Calendar – just like this widget works: https://addthisevent.com

    #5979
    Bartosz
    Keymaster

    I see.

    Just to make sure – I’m not talking about downloading a file – this url works like any other feed in WordPress. If you add that url (ical event feed url) to your Google Calendar it will be used to automatically get it’s content. There are options for this in Google Calendar.

    However it does not work like the service you linked above. Can this be achived with EM? Probably, but it would require some (at least) custom coding on your side.

    I’d be grateful for a commit :) but don’t have a plan to integrate that in the near future.

    #7437
    lukeadams
    Participant

    I understand that /event/event-name/feed/ical

    gives an .ics that can be added to google calender , is there an auto generated url
    for all events created, or all future/upcoming events?

    If so, what would the url be?

    many thanks

    Luke

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.