Skip to content

Importing Google Calendar into WordPress

For those of you who use your calendars in Google (and Google Apps), you sometimes find the need to display your events.  Speaking events, personal vacations, travelling; there are any number of reasons why you’d need to show an event list.  But, keeping track of multiple calendars is a pain.  So, take the easy solution and display a Google Calendar feed on your blog.

The Google Calendar Feed Parser plugin will pull an XML feed from your Google Calendar and display it in a neatly formatted list on your sidebar.  Were you expecting anything else? It does one task, but it does it looking nice and clean.

So, where do you find your Google Calendar XML Feed?

  1. If you log into your calendar on Google, next to the calendar you want to share is a drop-down button.  Click it and select the “Calendar Settings” choice. 
  2. near the bottom is three buttons: XML, ICAL, and HTML.  You want the XML link. 
  3. Click on it, and an RSS feed address will appear. 
  4. Copy that RSS feed and head into the options menu.  Paste the feed in. 

The one downside to this plugin?  You can’t run it in your sidebar… technically.  WordPress doesn’t allow you to natively run PHP inside of a widget.  You could paste the call:

<?php gcal_parse_feed(); ?>

But, if you’re running the Samsarin PHP widget, you can use PHP codes (and any other custom PHP) in your sidebar with very little fuss!

Leave a Reply

Your email address will not be published. Required fields are marked *