[WordPress] 外掛分享: Simple post listing

首頁外掛目錄 › Simple post listing
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
40+
安裝啟用
★★★★★
5/5 分(2 則評價)
5036 天前
最後更新
問題解決
WordPress 3.0+ v0.2 上架:2012-02-01

內容簡介

這是另一個簡單的外掛程式,可以顯示您網誌的文章列表。
在任何文章或頁面上使用 [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上報告錯誤、提供意見或派生此外掛程式。

外掛標籤

開發者團隊

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

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

原文外掛簡介

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

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

文章
Filter
Apply Filters
Mastodon