前言介紹
- 這款 WordPress 外掛「AR Subpages Widget」是 2020-12-28 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2020-12-29,距離現在已有 1585 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6.0 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
bfouzder |
外掛標籤
menu | widget | subpages | thearsoft | ar_subpages |
內容簡介
這個小工具會動態地列出所有的子頁面。當您在某個頁面時,它會找出該頁面的父頁面並列出其所有子頁面。
它也可以在列表中包含當前頁面的子頁面。
功能列表:
添加篩選器以更改章節的父級
允許對 $post 進行篩選
為菜單項目添加唯一的類別, menu-item-{id}
為子頁面列表末尾添加鏈接的勾子
更新後端小工具的格式
子頁面的標題可篩選
支援所有分層式的文章類型
僅在有類別時輸出類別的 HTML
只有在有子頁面時才輸出子頁面 ul
允許將第二級子頁面嵌套在 li 中
為第一個菜單項目添加類別
為小工具類別添加篩選器
為小工具標題添加篩選器
按菜單順序排序
在 args 固定參數中新增一個深度參數
允許更深層次的菜單(包括當前頁面的子頁面)
您可以使用以下篩選器自定義列表:
ar_subpages_widget_args - 修改傳遞給 wp_list_pages 的引數
ar_subpages_widget_display_override - 確定何時顯示小工具
ar_subpages_widget_override_post - 更改當前文章
ar_subpages_widget_parents - 自訂在查詢子頁面時使用的層級結構
ar_subpages_widget_title - 自訂小工具標題
ar_subpages_page_title - 自訂頁面標題
ar_subpages_widget_class - 自訂應用於頁面的類別
貢獻者:
- bfouzder
- farjanaroshni
原文外掛簡介
This widget will dynamically list all the subpages. When you are on a page, it will find the parent page and list all the child pages.
It can also include the current page’s subpages in the listing.
Feature List-
Add filter for changing section parents
Allow $post to be filtered
Add unique class to menu items, menu-item-{id}
Add hook for adding links to end of subpages listing
Update widget formatting in the backend
Subpage titles are filterable
Support for all hierarchical post types
Only output HTML for classes if there are classes
Only output subpages ul if there are subpages
Allow second level subpages to be nested in li
Add class for the first menu item
Add filter for widget classes
Add filter for widget title
Sort by menu order
Add a depth parameter to the args filter
Allow deeper menu (current page’s subpages)
You can customize the listing with the following filters:
ar_subpages_widget_args – modifies the arguments passed to wp_list_pages
ar_subpages_widget_display_override – determine when the widget is displayed
ar_subpages_widget_override_post – change the current post
ar_subpages_widget_parents – customize the hierarchy used in querying subpages
ar_subpages_widget_title – customize the widget title
ar_subpages_page_title – customize the page title
ar_subpages_widget_class – customize the classes applied to pages
Contributors:
– bfouzder
– farjanaroshni
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「AR Subpages Widget」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。