[WordPress] 外掛分享: Timed Event Block

首頁外掛目錄 › Timed Event Block
全新外掛
安裝啟用
尚無評分
2 天前
最後更新
問題解決
WordPress 6.5+ PHP 7.4+ v0.1.2 上架:2026-02-26

內容簡介

### 總結:
Timed Event Block 提供了一個伺服器渲染的父區塊,用於安排事件內容的日期/時間,以及用於動態日期、時間和倒數輸出的專用子區塊。這個外掛適用於電影放映時間、課程時間表、研討會、直播等事件清單,並且無需全局配置,只需安裝外掛並在全站編輯工作流中直接使用該區塊。

### 問題與答案:
1. Timed Event Block 主要用於哪些事件清單類型?
- 答:適用於電影放映時間、課程時間表、研討會、直播等事件清單。

2. 在安排事件內容時,Timed Event Block 提供了哪些子區塊?
- 答:提供了 Event Date、Event Time 和 Event Countdown 這三個專用子區塊。

3. 在 Timed Event Block 中,可以設置哪些自動狀態處理方式?
- 答:基於當前伺服器時間,包括 Scheduled、Active 和 Ended 這三種狀態處理方式。

4. Timed Event Block 是否支持自動隱藏已結束的事件?
- 答:是的,支持自動隱藏已結束的事件,可以選擇使用 "Hide when ended" 選項。

5. Timed Event Block 提供了哪些子區塊可以用於動態更新狀態/時間/倒數而無需頁面刷新?
- 答:提供了 Event Date、Event Time 和 Event Countdown 這三個子區塊,用於動態更新狀態/時間/倒數而無需頁面刷新。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Timed Event Block」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Timed Event Block adds a server-rendered parent block for scheduling event content by date/time, plus dedicated child blocks for dynamic date, time, and countdown output.
Ideal for event listings such as movie showtimes, class schedules, workshops, conferences, livestreams, and similar use cases. It requires no global configuration: install the plugin and start using the block directly in FSE workflows.
This plugin is designed for full site editing workflows where content creators need:

A single event container that can hold any core block (text, media, embeds, columns, groups, etc.).
Automatic status handling based on current server time:
Scheduled
Active
Ended
Optional automatic hiding of ended events (Hide when ended).
Child blocks that can be used only inside the Timed Event parent:
Event Date
Event Time
Event Countdown
Dynamic frontend updates for status/time/countdown without page refresh.
Native Gutenberg style controls (spacing, color, typography, border, dimensions) on parent and child blocks.

How it works:

Add a Timed Event block.
Set start date/time and duration.
Insert any content you want.
Optionally insert child blocks:

* Event Date for date display with site/custom format.
* Event Time for scheduled time and active/ended label transitions.
* Event Countdown for countdown to start/end and status transitions.
5. Publish. Frontend output is resolved server-side, and dynamic text updates via lightweight view scripts.
Blocks
Timed Event
Parent container block that controls event lifecycle and visibility.
Features:
* Start date and time.
* Duration in minutes.
* Hide when ended toggle.
* Full inner content flexibility.
Event Date
Child block (ancestor-restricted to Timed Event) that reads parent context and renders formatted date.
Features:
* Site default format or custom format string.
* Uses WordPress timezone and date settings by default.
Event Time
Child block that reads parent context and renders:
* Scheduled state: formatted time.
* Active state: configurable active label.
* Ended state: configurable ended label.
Features:
* Site/custom time format.
* Editable active/ended labels.
* Editable active/ended colors.
* Dynamic frontend state update.
Event Countdown
Child block that reads parent context and renders:
* Countdown to start or countdown to end.
* Active/ended label after countdown completion.
Features:
* Target mode: to_start or to_end.
* Day visibility toggle.
* Custom separator.
* Editable active/ended labels.
* Editable active/ended colors.
* Dynamic frontend state update.

延伸相關外掛

文章
Filter
Mastodon