WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.