內容目錄
- 1 內容簡介
- 2 外掛標籤
- 3 開發者團隊
- 4 原文外掛簡介
- 5 and the list style is plain. text: One of none (default), excerpt, or normal. If it is excerpt, then the post excerpt is shown, similar to search results. If it is normal then the full post (up to the [more] tag) is shown. null_text: If no results are returned, shows this text. Defaults to (none). class_name: If defined, adds this class name to the generated tag. Useful for custom styling. show_date: If defined, the date will precede the post title date_format: If showing the date, this php date format will be used. The default is the Date Format value from the General Settings page. I recommend "F j, Y", which displays as “May 12, 2012”. q: Arbitrary additional arguments to pass to the query. See the WP_Query page for available syntax. For example, to show only events with tag “workshop”, and only 3 such events, you would write [upcoming q="posts_per_page=3&tag=workshop"]. The output can then be further formatted using CSS. We recommend the plugin Improved Simpler CSS for quickly styling your upcoming events list (and your site)! Report bugs, give feedback, or fork this plugin on GitHub. 延伸相關外掛
內容簡介
這是另一個簡單的外掛,可以為您的部落格增加一些行事曆功能。使用這個外掛,您可以在帖子編輯器中使用新的小工具指定任何帖子的相關“活動日期”。然後,在您的網站其他地方,您可以使用 [upcoming] 簡碼在任何帖子或頁面上檢索未來活動列表。
簡碼支援多個選項:
category_name:如果定義了,只顯示這些分類中的帖子。您可以提供多個逗號分隔的分類識別符(slug)。
days_old:顯示Event Date過去不超過這麼多天的事件。默認值為0,僅顯示今天或以後的事件。如果輸入非數字值,例如無限,則將顯示所有匹配事件,而不考慮Event Date。
style:其中之一是列表(默認)或帖子。如果是列表,則列表風格縮進並有圓點;如果是帖子,則標題會升級為<h2 class="upcoming-entry-title">,而列表風格是簡單的。
text:其中之一是 none(默認值)、excerpt 或normal。 如果是excerpt,則類似於搜索結果顯示帖子摘要;如果是normal,則顯示完整帖子(直到 [more]標記為止)
null_text:如果未返回結果,則顯示此文本。默認為(none)。
class_name:如果定義了,則將此類名添加到生成的<ul>標記中。適用於自定義樣式。
show_date:如果定義了,則日期將在帖子標題之前顯示
date_format:如果顯示日期,則使用此PHP日期格式。默認值來自常規設置頁面的日期格式值。我推薦使用"F j,Y",顯示為“2012年5月12日”。
q:傳遞給查詢的任意其他引數。有關可用語法,請參閱WP_Query
頁面。例如,要僅顯示標記為“工作坊”的事件,並僅有3個這樣的事件,您需要編寫[upcoming q="posts_per_page=3&tag=workshop"]。
然後可以使用CSS進一步格式化輸出。 我們建議使用 Improved Simpler
CSS插件快速為您的即將到來的事件列表(以及您的網站)設置樣式!
在GitHub上報告錯誤,提供反饋或分叉此外掛。
外掛標籤
開發者團隊
原文外掛簡介
This is another simple plugin to add a little functionality of a
calendar to your blog. With this plugin you can specify, for any of
your posts, an associated “Event Date” using a new widget in the post
editor. Then, elsewhere on your site, you can retrieve a list of
future events using the [upcoming] shortcode on any post or page.
The shortcode supports several options:
category_name: If defined, show posts only from these
categories. You can provide multiple comma-separated category
identifiers (slugs).
days_old: Show events whose Event Date is no more than this many
days past. The default is 0, which shows only events taking place
today or later. If you enter a non-numeric value such as infinity,
then all matching events will be shown regardless of the Event Date.
style: One of list (default) or post. If it is list, then
the list style is indented and bulleted. If it is post then the
title is promoted to
and the list
style is plain.
text: One of none (default), excerpt, or normal. If it is
excerpt, then the post excerpt is shown, similar to search results.
If it is normal then the full post (up to the [more] tag) is
shown.
null_text: If no results are returned, shows this text.
Defaults to (none).
class_name: If defined, adds this class name to the generated
tag. Useful for custom styling.
show_date: If defined, the date will precede the post title
date_format: If showing the date, this php date format will be
used. The default is the Date Format value from the General Settings
page. I recommend "F j, Y", which displays as “May 12, 2012”.
q: Arbitrary additional arguments to pass to the query. See the
WP_Query
page for available syntax. For example, to show only events with tag
“workshop”, and only 3 such events, you would write [upcoming
q="posts_per_page=3&tag=workshop"].
The output can then be further formatted using CSS. We recommend the
plugin Improved Simpler
CSS for
quickly styling your upcoming events list (and your site)!
Report bugs, give feedback, or fork this plugin on
GitHub.
延伸相關外掛
excerpt, then the post excerpt is shown, similar to search results.
If it is normal then the full post (up to the [more] tag) is
shown.
Defaults to (none).
show_date: If defined, the date will precede the post title
date_format: If showing the date, this php date format will be
used. The default is the Date Format value from the General Settings
page. I recommend "F j, Y", which displays as “May 12, 2012”.
q: Arbitrary additional arguments to pass to the query. See the
WP_Query
page for available syntax. For example, to show only events with tag
“workshop”, and only 3 such events, you would write [upcoming
q="posts_per_page=3&tag=workshop"].
The output can then be further formatted using CSS. We recommend the
plugin Improved Simpler
CSS for
quickly styling your upcoming events list (and your site)!
Report bugs, give feedback, or fork this plugin on
GitHub.
