WordPress.org

Forums

Generate .ics calendar files dynamically? (7 posts)

  1. lowwa
    Member
    Posted 3 years ago #

    I have spent all day researching blogs and forums on this.

    I want to dynamically generate an .ics calendar file so that Outlook Calendar users etc. can save our events.

    We have WordPress posts under the category "events" and I'm trying to make a custom template for those posts called events.php.

    I found this code online, and it works, but we don't want this to automatically popup when users view the event post. Instead, we want a little button or link that says "add to Outlook Calendar" and then it pops up with a download/open box.

    We want to use "custom fields" in this code too, to generate the date, time, location, and event description dynamically. The main problem is really converting the below code to a "clickable" code...

    Anyway here is PHP code that works but needs hacking:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thank you for any feedback or suggestions!

  2. lowwa
    Member
    Posted 3 years ago #

    ...okay. Well, here is the code, again:

    http://pastebin.com/1A5602Si

  3. lowwa
    Member
    Posted 3 years ago #

    Nobody has any idea really?

  4. lowwa
    Member
    Posted 3 years ago #

    Pretty, pretty please.

  5. lowwa
    Member
    Posted 3 years ago #

    Anyone out there?

  6. vokomonehe1
    Member
    Posted 3 years ago #

    I've been trying to accomplish this as well. I have tried a few plugins that promise this but ultimately do not work. Have you had any luck in your search?

  7. abdulmannan
    Member
    Posted 3 years ago #

    I have also been searching a lot on this but didn't find the end results.I just wanted to have a link of download to download the event calender , so any one can get it in his/her outlook or google calender

Topic Closed

This topic has been closed to new replies.

About this Topic