Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
This is entirely based on Event Organiser (a plug-in I’ve developed). The code is lifted almost straight from the source but with alterations. As such I’ve not tested the code as given. Step 1: Create a feed This is simple: add_action(‘init’,’wpse63611_add_events_feed’); function wpse63611_add_events_feed(){ add_feed(‘my-events’,’wpse63611_events_feed_output’); } This adds a feed to your site: www.site.com?feed=my-events or www.site.com/feed/my-events … Read more