[WordPress] 外掛分享: List Children

首頁外掛目錄 › List Children
100+
安裝啟用
★★★★★
5/5 分(2 則評價)
324 天前
最後更新
問題解決
WordPress 5.3+ PHP 8.0+ v2.2.0 上架:2009-05-19

內容簡介

使用 HTML 註釋列出當前頁面的子頁面或同層頁面的鏈接。

通常用於使用 WordPress 作為簡單 CMS 的內容網站。一些內容分層需要概述頁面,然後是多個子頁面,例如服務頁面。

使用以下短代碼來列出當前頁面的子頁面和 / 或同層頁面:

當前頁面的子頁面按字母順序排序:

[list_children sort_column=”page_title” sort_order=”asc”]

當前頁面的同層頁面按選單順序(降序)排序:

[list_siblings sort_column=”menu_order” sort_order=”desc”]

您可以使用 wp_list_pages() 調用中的大多數屬性:https://codex.wordpress.org/Function_Reference/wp_list_pages

以下將不再適用(已棄用):

<ul>
<!–list_children()–>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2.0) 或搜尋安裝

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

原文外掛簡介

Use an HTML comment to list links of the current page’s children or siblings.
Common usage is for content sites utilizing WordPress as a simple CMS. Some content hierarchies call for an Overview page followed by multiple subpages, for example, a Services page.
Use the following shortcodes to list children and or siblings of the current page:
Alphabetical listing of current page’s children:
[list_children sort_column=”page_title” sort_order=”asc”]
List of current page’s siblings, ordered by menu order (descending):
[list_siblings sort_column=”menu_order” sort_order=”desc”]
You can use a majority of the attributes from the wp_list_pages() call: https://codex.wordpress.org/Function_Reference/wp_list_pages
The following will no longer work (deprecated):

延伸相關外掛

文章
Filter
Apply Filters
Mastodon