Embed a Google Calendar in a WordPress Post

Someone recently asked me whether a Google calendar could be embedded in a WordPress post or page, so I thought I would re-test it with the new Gutenberg blocks.

The good news is that it can be done! (YAY!) But I wish it could be quickly done using the Embed block, since that seems to be the most intuitive approach.

In all, I made 3 attempts:

  1. The ‘HTML’ block, containing the embed code from the Google Calendar settings (the only success of the three).
  2. The ‘Embed’ block, containing the ‘Public URL to this calendar’ from the calendar settings.
  3. The ‘Embed’ block, containing the ‘Public address in iCal format’, which has the note “Use this address to access this calendar from other applications”, so sounded like the right one to use. It was not.

Using the embed code in the ‘HTML’ block

Here is a sample of the end result, when using the embed code.