Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a custom post type called "events" How can I use the date on that post type to create a ics feed so users and subscribe to upcoming events?

share|improve this question

1 Answer 1

Basically you have to write a piece of php code to read your events and write it out in ics format. (Just like writing out a template but a bit different).

Wordpress has actions/functions to add a feed and provide a hook that produces the text. You also need to make sure that you adjust the query to list all of the events.

To ensure that your feed is accepted by all the calendar providers, certain things must be in place.

On this website (http://icalevents.com) in the sidebar lower down, there is a list of ics resources info, validators etc

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.