內容簡介
更多文件可於http://docs.wp-event-organiser.com/shortcodes/posterboard/找到。
基本用法
您可以在任何頁面或文章中使用簡碼[event_board]來顯示事件海報牆。最好使用全寬頁面。
進階用法
簡碼支援與事件列表簡碼相同的參數。這
包括顯示特定類別或滿足特定查詢的事件。
例如,僅顯示類別為“foobar”的事件:
[event_board event_category="foobar"]
顯示在接下來的7天內開始的事件
[event_board event_start_after="now" event_start_before="+7 days"]
大多數由[eo_events](參見文件)簡碼支援的參數也可與
海報牆搭配使用。請注意,應使用posts_per_page代替
numberposts,不支援no_events屬性。
例如,顯示這個星期開始(星期一開始)的三次事件:
[event_board event_start_after="monday this week" event_start_before="sunday this week" posts_per_page=3]
篩選器
您可以在事件海報牆頂部添加篩選器以篩選事件,支援的篩選器包括:
場地
類別
城市(安裝Event Organiser Pro後)
州(安裝Event Organiser Pro後)
國家(安裝Event Organiser Pro後)
例如
[event_board filters="state"]
您可以通過列出逗號分隔的列表來顯示多個篩選器
[event_board event_start_after="now" event_start_before="+1 week"]
您可以編輯用於事件海報牆的模板。請參閱常見問題解答。
外掛標籤
開發者團隊
原文外掛簡介
Further documentation can be found at http://docs.wp-event-organiser.com/shortcodes/posterboard/.
Basic Usage
To display the event posterboard simply use the shortcode [event_board] on any page or post. Full width pages work best.
Advanced Usage
The shortcode supports the same arguments as the events list shortcode. This
includes the ability to display only a particular category, or events satisfying a certain query.
For example, to show events only for category “foobar”:
[event_board event_category="foobar"]
To show events starting in the comming 7 days
[event_board event_category="foobar"]
Most arguments supported by the [eo_events] (see documentation) shortcode will also work with
posterboard. Please note that posts_per_page should be used instead of
numberposts and the no_events attributes is not supported.
E.g. to show events which start this week (week starting Monday), three at a time:
[event_board event_start_after="monday this week" event_start_before="sunday this week" posts_per_page=3]
Filters
You can add filters at the top of the event board to filter the events. Supported filters include:
venue
category
city (when installed with Event Organiser Pro)
state (when installed with Event Organiser Pro)
country (when installed with Event Organiser Pro)
For example
[event_board filters="state"]
You can display multiple filters by listing them as a comma delimited list
[event_board event_start_after="now" event_start_before="+1 week"]
You can edit the template used for the event board. See the FAQ.
