Linux 软件免费装
Banner图

Beacon Calendar Feed – Google Calendar, Outlook and iCal feeds as a block

开发者 beaconevents
更新时间 2026年11月28日 01:44
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

calendar events block google calendar ical

下载

0.1.1 0.2.0 0.1.0 0.3.0

详情介绍:

Add the Calendar Feed block, paste your calendar's address, and its events appear on the page in your theme's fonts and colours: a list of what's coming up, or a month grid. No iframe, no account, no API key. https://www.youtube.com/watch?v=Egv3AsV0RlI Problems with a calendar address (a private calendar, a typo) are shown to people who can edit the page, never to visitors. If you'd rather manage events in WordPress itself, with recurring events, a calendar that syncs from Google, venues and RSVPs, have a look at Beacon Events, the full events calendar from the same author.

安装:

  1. In the block editor, add a block and search for "Calendar Feed" (or "Google Calendar"). Or install the plugin from Plugins → Add New.
  2. Paste your calendar's public iCal address (see the FAQ for where to find it) and click Show calendar.
  3. In the block settings, choose a list or a month.

屏幕截图:

  • The month view of the same two calendars, with Subscribe links under it.
  • The block in the editor: each calendar's address, name and colour in the sidebar.

常见问题:

Where do I find my Google Calendar's address?

In Google Calendar on a computer, open Settings, click your calendar under "Settings for my calendars", and under "Access permissions for events" tick "Make available to public". Then copy "Public address in iCal format" under "Integrate calendar". A share link (calendar.google.com/calendar/embed?src=…) works too: the block turns it into the iCal address. The secret address works as well, but anyone who can see the page's settings could read it, so the public one is better.

And Outlook or Microsoft 365?

In Outlook on the web: Settings → Calendar → Shared calendars → Publish a calendar. Pick the calendar, choose "Can view all details", publish, and copy the ICS link.

And Apple Calendar (iCloud)?

In Calendar, share the calendar and tick "Public Calendar", then copy the link (it starts with webcal://). Paste it as it is.

How quickly do changes show up?

The block reads the calendar at most once an hour, so a change can take up to an hour to appear. Google itself can take a while to update its public feed after you edit an event.

Which repeating events are supported?

Daily, weekly (on one or several days), monthly on a date or on a weekday position ("second Tuesday", "last Friday", "first and third Friday"), yearly, every N days/weeks/months, a number of times or until a date, skipped dates, and moved or cancelled single dates. A rule outside that (for example several times a day by hour) shows its first date rather than guessing.

Which time zone are times shown in?

Your site's time zone (Settings → General). An all-day event stays on its date wherever the site is. If you switch on "Show times in the visitor's time zone", a visitor whose clock is in another zone sees each time converted, with the zone's name, and a line saying so. The month grid keeps each event on its day in your site's calendar; when the visitor's time falls on another day, the cell says which ("Wed 10:30 AM").

Can one block show more than one calendar?

Yes, up to five. In the block's sidebar, click "Add another calendar", paste its address, and pick a colour. Give each one a name and a key appears above the events. If one calendar can't be read, the others still show (and people who can edit the page are told which one failed).

My host flushes its object cache a lot. Does the calendar still work when Google is down?

Yes. The hour-long copy is a transient, which a persistent object cache may drop early; that only means the calendar is read again a bit sooner. The last good copy is stored as a normal (not autoloaded) option, so a cache flush can't remove it, and it is shown for up to 30 days while the calendar address doesn't answer.

Does it contact Google when a visitor opens the page?

No. Your server reads the calendar address and keeps a copy for an hour. Visitors' browsers load nothing from the calendar host.

Is there a settings page?

No. Everything is in the block's sidebar, so each block can show a different calendar.

更新日志:

0.3.0 0.2.0 0.1.1 0.1.0