
內容簡介
一個 WordPress 外掛,以小工具的形式在前端顯示即將舉行的事件列表。
使用方法
安裝並啟用外掛後:
前往管理儀表板 -> 事件 -> 新增事件
輸入事件標題、事件描述、事件開始日期、事件結束日期和事件場地。然後
前往管理儀表板 -> 外觀 -> 小工具
找到「即將舉行的事件」並點擊它。
選擇要在哪個小工具區域顯示,然後點擊新增小工具
輸入小工具標題,選擇要顯示的事件數量,然後點擊儲存
外掛標籤
開發者團隊
原文外掛簡介
A WordPress plugin to show a list of upcoming events on the front-end as widget.
Usage
Step 1: Creating events
After installing and activating the plugin, a new custom post type called “Events” will appear at your WordPress Admin area.
Just create your events from the “Events” menu.
Step 2: Using on Gutenberg Block Editor (WordPress 5.0 or later)
If you are using block editor, add a new page and search for ‘Upcoming Events Lists’, set necessary options as your requirement.
Save and view you page. All done!
Step 3: Shortcode (When you cannot use step 2)
Add a new page and paste the following shortcode where you want to display the events:
[upcoming_events_list]
The shortcode can include following attributes.
view_type: Default value list. Value can be list or grid.
show_all_event_link: Default value yes. Value can be yes or no.
If you set grid for view_type, you can also include the following attributes.
columns_on_tablet: Default value 2. Value can be from 1 to 6 (except 5)
columns_on_desktop: Default value 3. Value can be from 1 to 6 (except 5)
columns_on_widescreen: Default value 4. Value can be from 1 to 6 (except 5)
Example 1:
[upcoming_events_list view_type='grid' columns_on_tablet='3' columns_on_desktop='4' columns_on_widescreen='6']
