內容簡介
此外掛提供兩個小工具,以顯示簡短且高度縮短的分層列表,可用於顯示頁面、類別和自定義分類法。適用於具有數百個頁面或使用自定義文章類型或自定義分層分類法的大型網站。
在頁面小工具中:總是顯示當前頁面、上層頁面至首頁,以及當前頁面的子頁面。偵測巢狀類別和自定義分類法,同樣顯示當前頁面下方和上方的類別或分類法。
此小工具的行為可以在其配置螢幕中進行配置,該屏幕的配置如下:
類別小工具也會顯示自定義分類法。管理員螢幕包括已定義的分類法列表;將該欄位留空以使用內置的文章類別。
標題是可選的(空白將不會發出標題);使用空白標題和禁用頂級條目(頁面/類別/分類法),您可以使小工具僅在用戶“當前位於”符合小工具要顯示的頁面/文章類型時顯示。
頁面可以按菜單順序或按字母順序排序。要按菜單順序排序頁面,並使同一排序的頁面按字母順序排序,請將排序欄位參數設置為:menu_order,post_title…一些站點已報告問題,似乎需要僅指定menu_order。
類別和自定義分類法可以按名稱、縮略詞或在管理表單上顯示的其他欄位進行排序。
排序順序可以是ASC或DESC。
當啟用當前頁面的同級頁面時,當前頁面的父頁面的子頁面將被顯示。禁用此功能可使頁面列表較短,但用戶可能無法在站點中移動“側邊”。
如果有許多頂級頁面(未設置父級的頁面),則可以禁用它們的清單。
如果您的站點有引言頁或門戶網站作為靜態主頁,您可能希望禁用顯示它(可能通過圖示連結可訪問)。但是,如果主頁有子頁面,它將始終顯示(否則,您將永遠無法導航到這些頁面)。
對於頁面,您可以選擇性地指定必須匹配的元鍵和值,以便在小工具中顯示頁面。
同樣對於頁面,您可以選擇符合給定作者或發佈狀態的文章。將這些欄位留空以获取“所有作者”和“公開”狀態。
可以隱藏空的類別/分類法。
兩個小工具均允許指定包含列表或排除列表。這些都是逗號分隔的ID列表。您可以指定包含或排除,但不是兩者都指定。
西班牙語翻譯,由WebHostingHub.com的Andrew Kurtis提供。謝謝,Andrew!
外掛標籤
開發者團隊
原文外掛簡介
Two widgets are provided, for displaying a vastly condensed
hierarchial list either of pages, or of categories and custom
taxonomies. Designed for large sites with hundreds of pages, or when
using custom post types or custom hierarchical taxonomies.
With Pages: Always displays the current page, the pages above it back
to the home page, and the current page’s children. Detects nested
categories and custom taxonomies, and likewise displays the categories
or taxonomies above and below the currently displayed one.
The behavior of the widget is all configurable through its
configuration screen, as follows:
The Categories widget will also display custom taxonomies.
The admin screen includes a list of the defined ones;
leave the field blank to use the built-in post categories.
The title is optional (blank will emit no heading); with
a blank heading and top-level entries (pages/categories/
taxonomies) disabled, you can have the widget only display
when the user is “currently inside” a page/post that matches
what the widget is set to display.
Pages may be sorted in Menu Order or alphabetically.
To sort pages in menu order, with pages of the same order
alphabetical, set the Sort Field parameter to:
menu_order,post_title … some sites have reported issues
and seem to require that only menu_order be specified.
Categories and custom taxonomies may be sorted by name,
slug, or other fields displayed on the admin form.
Sort order can be ASC or DESC
Siblings to the current page, if enabled, means that child
pages of the current page’s parent will be displayed.
Disabling this makes for shorter page lists but the user
might not be able to move “sideways” in the site.
If there are many top-level pages (pages with no Parent set),
you can disable their listing.
If your site has an Introduction or splash page, as a static home
page, you might want to disable showing it (presumably it is
accessible through an icon link). However, if the homepage has
children, it will always be displayed (otherwise you could never
navigate to those pages).
For Pages, you may optionally specify a meta-key and value
which must be matched for pages to be listed in the widget.
Also for Pages, you may select posts that match a given
Author or post status. Leave these blank for “all authors”
and “publish” status.
Empty categories/taxonomies may be hidden.
Both plugins permit specifying either an include list or
an exclude list. These are comma-delimited lists of
ID numbers. You may specify either include or exclude, not both.
Spanish translation provided courtesy Andrew Kurtis of WebHostingHub.com
Thanks, Andrew!
