內容目錄
- 1 內容簡介
- 2 外掛標籤
- 3 開發者團隊
- 4 原文外掛簡介
- 5 and the list style is plain. text: One of none (default), excerpt, excerpt-formatted, 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. more_text: Specify the text to append onto truncated excerpts. Defaults to .... null_text: If no results are returned, shows this text. Defaults to (none). class_name: If defined, adds this class name to the generated element. Useful for custom styling. show_date: If defined, the post 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 &-separated arguments to add to the query. See the WP_Query page for available syntax. For example, to show only three posts and you want to show them in ascending instead of descending order, you would write [postlist q="posts_per_page=3&order=ASC"]. The output can then be further formatted using CSS. We recommend the plugin Improved Simpler CSS for quickly styling your post list (and your site)! This plugin can also be easily made into a widget by placing the shortcode into a text widget, and activating the Shortcodes in sidebar plugin. Report bugs, give feedback, or fork this plugin on GitHub. 延伸相關外掛
內容簡介
這是另一個簡單的外掛程式,可以顯示您網誌的文章列表。
在任何文章或頁面上使用 [postlist] 短碼。
該短碼支援多個選項:
category:如果定義,則只顯示該類別的文章。
使用類別的標題識別碼 (slug identifier) 進行指定。如果您提供多個以逗號分隔的
標題識別碼,則它們都將包含其中。
tag:如果定義,則只顯示該標籤的文章。使用標籤的標題識別碼進行指定。
如果您提供多個以逗號分隔的標籤識別碼,則它們都將包含其中。
style:其中一個 list(預設)或 post。如果是 list,則列表樣式為縮進和符號列表。
如果是 post,標題將提升為 <h2 class="upcoming-entry-title">,
並且列表樣式為平面列表。
text:其中一個 none(預設)、excerpt、excerpt-formatted,或 normal。如果是 excerpt,
則顯示文章節錄,類似於搜尋結果。如果是 normal,則顯示完整文章(直到 [more] 標籤為止)。
more_text:指定要附加到截斷的節錄的文字。預設為 ...。
null_text:如果沒有結果返回,則顯示此文字。預設為 (none)。
class_name:如果定義,則將此類別名稱添加到生成的 <ul> 元素中。對於自訂樣式非常有用。
show_date:如果定義,則文章日期將在文章標題之前出現。
date_format:如果顯示日期,則將使用此 php 日期格式。默認值為常規設置頁面上的日期格式值。
我建議使用 "F j, Y",格式為「May 12, 2012」。
q:要添加到查詢中的任意&分隔引數。請參閱 WP_Query 頁面的可用語法。
例如,要僅顯示三篇文章且要以升序顯示它們,您將編寫 [postlist q="posts_per_page=3&order=ASC"]。
然後,可以使用 CSS 進一步格式化輸出。我們推薦使用外掛程式 Improved Simpler CSS 快速為您的文章列表(和您的網站)設置樣式!
也可以通過將短碼放入文字 widget 中並啟用側邊欄中的短碼外掛程式,輕鬆將此插件製作為 widget。
在GitHub上報告錯誤、提供意見或派生此外掛程式。
外掛標籤
開發者團隊
原文外掛簡介
This is another simple plugin to show a list of posts from your blog.
Use the [postlist] shortcode on any post or page.
The shortcode supports several options:
category: If defined, show posts only from this category.
Specify the category using its slug identifier. If you provide
multiple comma-seperated category slugs then they will all be
included.
tag: If defined, show posts only from this tag. Specify the tag
using its slug identifier. If you provide multiple comma-seperated
tag slugs then they will all be included.
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
