[WordPress] 外掛分享: CC-List-Posts

首頁外掛目錄 › CC-List-Posts
WordPress 外掛 CC-List-Posts 的封面圖片
10+
安裝啟用
尚無評分
1464 天前
最後更新
問題解決
WordPress 4.7+ v1.0.1 上架:2016-12-26

內容簡介

CC-List-Posts 外掛可以直接使用。
該外掛沒有設定頁面。
啟用後,您可以使用以下列出的參數開始使用 wp_list_posts 函式和/或短代碼。

注意:如果使用整數值的 pagination 參數,該外掛可與 wp_link_pages 內建功能一起使用。

預設值

before: (字串) <ul>,
after: (字串) </ul>,
link_before: (字串) 空字串,
link_after: (字串) 空字串,
type: (字串) postbypost,
echo: (整數) 0,
pagination: (boolean|整數) false,
format: (字串) html
type: (字串) monthly,
limit: (字串) 空字串,
show_post_count: (boolean) false,
order: (字串) DESC,
post_type: (字串) post

注意:該外掛使用 wp_get_archives 函式來列出文章,因此您還可以使用其他參數。完整列表可在 WordPress codex 頁面的文件中查看。

將 wp_list_posts 參數映射到 wp_get_archives

link_before: before
link_after: after

預設用法

函式:wp_list_posts( array( 'pagination' => 50 ) )
短代碼:[wp_list_posts pagination=50]

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

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

原文外掛簡介

The CC-List-Posts plugin works out of the box.
There is no settings page for it.
After activation you can start using wp_list_posts function and/or shortcode with the parameters listed below.
Notice: the plugin can be used with the wp_link_pages built-in functionality if you use pagination parameter with integer value.
Defaults

before: (string)

    ,
    after: (string)

,
link_before: (string) empty string,
link_after: (string) empty string,
type: (string) postbypost,
echo: (integer) 0,
pagination: (boolean|integer) false,
format: (string) html
type: (string) monthly,
limit: (string) empty string,
show_post_count: (boolean) false,
order: (string) DESC,
post_type: (string) post

Notice: plugin uses wp_get_archives function to list posts, so you can also use additional parameters. A full list is available at WordPress codex page documentation.
wp_list_posts parameter mapped to wp_get_archives

link_before: before
link_after: after

Default usage

Function: wp_list_posts( array( 'pagination' => 50 ) )
Shortcode: [wp_list_posts pagination=50]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon