這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

BE Subpages Widget

描述

This widget will dynamically list a section’s subpages. When on a page, it will find the section’s top level page and list its children.

It can also include the current page’s subpages in listing.

You can customize the listing with the following filters:
be_subpages_widget_args – modifies the arguments passed to wp_list_pages
be_subpages_widget_display_override – determine when the widget is displayed
be_subpages_widget_override_post – change the current post
be_subpages_widget_parents – customize the hierarchy used in querying subpages
be_subpages_widget_title – customize the widget title
be_subpages_page_title – customize the page title
be_subpages_widget_class – customize the classes applied to pages

Contributors:
billerickson
scil
jb510
fabiancz

View all plugins by Bill Erickson

評價

2016年9月3日
Prefect plugin. I was using a custom-coded shortcode to do this, but was having trouble getting the children/grandchildren page lists to appear outside of the parent list's li element. The default in this plugin to not nest subpages is perfect for the style I need to set up. Thanks!
2016年9月3日 1 reply
Simple and elegant, but important, features to have. WordPress should have this widget, exactly as this dev has done. Well-done plugin. It does exactly what is needed: provide nav within a section, between 2nd and 3rd, on down, level pages from the parent page. Option for the entire menu for the section to display on each page of the section. - The menu displays on all section pages, not just pages with child pages. (I do not know why I had to try so many widget menus to find that.) The results look great. Seamless. It looks exactly like part of the theme. Consistent and reliable. I have used it on a couple of sites so far. Thank you for your hard work to provide us with this plugin! If you rate 5 stars and use a plugin long-term, be sure to donate.
閱讀全部19個評價

貢獻者及開發者

“BE Subpages Widget” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 BE Subpages Widget 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.7

  • Allow $post to be filtered

1.6

  • Update widget to use PHP5 constructor

1.5

  • Add filter for changing section parents
  • Add unique class to menu items, menu-item-{id}
  • Add hook for adding links to end of subpages listing

1.4

  • Update widget formatting in backend
  • Subpage titles are filterable

1.3

  • 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
  • Czech translation

1.2

  • Add class for 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

1.1

  • Allow deeper menu (current page’s subpages)
  • French Translation
  • Add ‘widget_subpages_current_page’ class to current menu item
  • Add be_subpages_page_title filter
  • Thanks to Cedric Houbart of SCIL for this set of changes

1.0

  • Release of plugin