[WordPress] 外掛分享: SR-ChildPages

前言介紹

  • 這款 WordPress 外掛「SR-ChildPages」是 2008-05-16 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2008-05-17,距離現在已有 6196 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.5 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mickelsn1 |

外掛標籤

list | pages | shortcode |

內容簡介

這個外掛讓頁面作者可以通過使用新的 [childpages] 短碼,輕鬆地列出指定頁面的任何子頁面。 使用短碼 [childpages] 會返回一個基本的子頁面列表,該列表為您正在編輯的頁面的子頁面。 作為 Usage 部分所述的更複雜版本的短碼會給您更多控制輸出結果的選項。

使用方法

獲取頁面列表的基本短碼為 [childpages]。 不論何時您需要放置當前正在編輯的頁面的子頁面列表,只需在可視化或 HTML 編輯器中輸入該代碼即可。 結果顯示的列表不會顯示標題,一級深度,不排除任何子頁面或作者,按頁面順序排序,然後按標題排序。

要列出帶有標題的子頁面,請使用短碼的封套形式,如下所示:

[childpages]列表標題[/childpages]

開始和結束短碼之間的文本將是所得列表的標題,它正被傳遞到 wp_list_pages() 模板標記的 title_li 屬性中。

要更改用於格式化列表的默認值,請在您的短碼中傳遞相應的參數,如下所示:

[childpages depth=2 sort_column=ID]

您提供的參數傳遞給 wp_list_pages()。 支持以下參數; 有關這些參數的使用詳細信息可以在 WordPress Codex 中找到。

depth
child_of
exclude
echo
authors
sort_column

有關更多信息,請訪問該插件的主頁 http://scottierocket.com/wordpress-stuff/sr-childpages。

原文外掛簡介

This plugin allows page authors to easily list any child pages of a given page by simply using a new [childpages] shortcode. A basic list of the children to the page you’re editing will be returned with the shortcode [childpages]. More-complex versions of the shortcode, as described in the Usage section, give you additional control over the output results.
Usage
The basic shortcode to get a page list is [childpages]. Wherever you have a need to drop of a list of child pages for the page you’re currently authoring, just enter that code in either the Visual or HTML editor. The list that results will not be shown with a title, will be one level deep, will not exclude any child pages or authors, and will be sorted by page order and then by title.
To list the child pages with a title, use the enclosing form of the shortcode, like this:

[childpages]List Title[/childpages]

The text between the opening and closing shortcodes will be the title of the resulting list. It is being passed to the title_li attribute in the wp_list_pages() template tag.
To change the defaults used to format the list, pass the appropriate parameters in your shortcode, like this:

[childpages depth=2 sort_column=ID]

The parameters you provide are passed to wp_list_pages(). The following parameters are supported; usage details for these parameters can be found in the WordPress Codex.

depth
child_of
exclude
echo
authors
sort_column

For more information, visit the plugin’s home page at http://scottierocket.com/wordpress-stuff/sr-childpages.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SR-ChildPages」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.2 | trunk |

延伸相關外掛(你可能也想知道)

  • WP-PageNavi 》想要取代舊的 ← Older posts | Newer posts → 連結,並改為一些頁面連結嗎?, 這個外掛提供了 wp_pagenavi() 的樣板標籤,可以產生豪華的分頁連結...。
  • Nested Pages 》Nested Pages 是什麼?, , , 提供直覺且易於操作的拖放介面,以管理網頁結構及文章排序, 增強了快速編輯功能, 新增可編輯、可排序的樹狀表示網站頁面結構, 會...。
  • Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
  • CMS Tree Page View 》將所有頁面和自訂文章以 CMS 樹狀概覽方式添加到 WordPress,類似於專注於頁面的 CMS 中經常找到的檢視方式。, 如果您的目標是將多個內容類型合併到單一檢視...。
  • Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
  • Widgets on Pages 》這是添加小工具到文章和/或頁面最簡單,也是評價最高的方法。您可以創建無限的動態側邊欄(小工具區域),把它們插入到 WordPress 文章或頁面中。, 從設置菜...。
  • Post Tags and Categories for Pages 》將文章標籤與分類套件套用於所有頁面,讓您可以使用 WordPress 原生的分類功能來分類您的頁面,並且會顯示在 WordPress 存檔查詢裡。, 這個外掛並不會自動顯...。
  • My Private Site 》本外掛可讓管理員將 WordPress 網站限制僅供已註冊且已登入的使用者查看,任何未登入的使用者試圖查看網站上的任何頁面、文章或其他部分,都會顯示 WordPress...。
  • WP PageNavi Style 》首先,我想感謝 Lester 'GaMerZ' Chan 和 scribu 為這個美麗的 WordPress 頁面導航外掛所做出的貢獻。, 使用此外掛你必須先安裝 Wp Pagenavi。 , 連結:分頁...。
  • Tag Pages 》此外掛讓你可以像處理文章一樣新增標籤至頁面。, 此外掛將 ‘post_tag’ 分類法加入頁面文章類型中。, 這樣就可以在新增或編輯頁面介面中顯示標籤...。
  • Posts in Page 》使用簡單的簡碼 (shortcodes),輕鬆地將一個或多個文章添加到任何頁面。, 支援類別 (categories)、標籤 (tags)、自訂文章類型 (custom post types)、自訂稅項...。
  • Page Restrict 》限制某些頁面或文章僅限登錄用戶訪問, 此外掛允許您將所有頁面/文章限制為僅限登錄用戶訪問、不限制或選擇性限制。, 在某些情況下,您可能會將 WordPress 用...。
  • No Page Comment 》直到最近,WordPress 提供兩種選擇:你可以默認禁用所有頁面和文章的評論和引用追蹤,或者你可以啟用它們。在WordPress 4.3 版本中,這種情況終於改變,所以...。
  • HTML Page Sitemap 》此簡單外掛可透過輸入簡短代碼 [html_sitemap]於網頁內容中,新增一個頁面的 HTML 網站地圖(非 XML),但不包含文章。此外掛可設定特定深度、從特定父頁面開始...。
  • Essential Widgets 》Essential Widgets 是一款免費的 WordPress 插件,專門用於小工具,可以讓您在網站上創建和添加有趣的小工具,使其更具吸引力和親和力。Essential Widgets 忠...。

文章
Filter
Apply Filters
Mastodon