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?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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