
內容簡介
這個外掛可以顯示子頁面的清單,支援顯示內容或摘要、按鈕和鏈接、精選圖片以及版面配置等選項。在任何頁面中輸入短碼 [subpagelist] 即可生成該列表。以下是示例短碼和所有短碼屬性:
示例 Subpagelist 短碼
[subpagelist exclude=”3,5″ layout=”3col” link=”true” orderby=”title” order=”ASC” show=”excerpt” thumbnail=”thumbnail”]
短碼屬性包括:
exclude:排除顯示的頁面 ID 的逗號分隔列表。(默認值:無)
layout:如果您想以列的方式列出頁面,則設置此屬性;接受“2col”、“3col”或“4col”。 (默認值:1列)
link:將頁面標題設置為超鏈接;接受“true”或“false”。(默認值:true)
link_text:要顯示的“更多鏈接”文字。接受“您的自定義文本”。(默認值:“(more…)”)
orderby:接受任何 orderby 參數,如在codex中定義的。(默認值:menu_order)
order:接受ASC或DESC,必須是在codex中定義的。(默認值:ASC)
post_parent:優先使用其他頁面 ID 中的子頁面清單;接受任何頁面 ID。(默認值:當前頁面 ID)
show:顯示“摘要”、“內容”或“無”。(默認值:摘要)
show_children:選擇是否顯示子頁面的子項無序列表;接受“true”或“false”。(默認值:false)
thumbnail:選擇是否顯示該子頁面的精選圖片;接受“thumbnail”、“medium”、“large”或“false”。(默認值:false)
thumbnail_align:選擇是否強制對齊此精選圖片。如果設置為空,則繼承該版面配置的推薦對齊方式;接受“center”、“left”、“right”、“none”。(默認值:false)
外掛標籤
開發者團隊
原文外掛簡介
Shows a list of subpages, with display options for content or excerpts, buttons and links, featured images, and layout. Enter the shortcode [subpagelist] in any page to generate the list. An example shortcode and all shortcode attributes are displayed below:
Example Subpagelist Shortcode
[subpagelist exclude=”3,5″ layout=”3col” link=”true” orderby=”title” order=”ASC” show=”excerpt” thumbnail=”thumbnail”]
Shortcode Attributes Include:
exclude: A comma-separated list of the page IDs to exclude from display. (default: none)
layout: Set this attribute if you would like to list the pages in columns; accepts “2col”, “3col” or “4col”. (default: 1 column)
link: Hyperlink the page title; accepts “true” or “false”. (default: true)
link_text: The “more link” text to display. Accepts “your custom text”. (default: “(more…)”)
orderby: Accepts any orderby parameter as defined in the codex. (default: menu_order)
order: Accepts ASC or DESC as defined in the codex. (default: ASC)
post_parent: Override the parent page ID to pull in a different list of subpages; accepts any page ID. (default: current page ID)
show: Display “excerpt”, “content”, or “none”. (default: excerpt)
show_children: Optionally display an unordered list of the child page’s children; accepts “true” or “false”. (default: false)
thumbnail: Optionally show the subpage’s featured image; accepts “thumbnail”, “medium”, “large” or “false”. (default: false)
thumbnail_align: Optionally force the alignment of the featured image. Leave blank to inherit the suggest alignment for the given layout; accepts “center”, “left”, “right”, “none”. (default: false)
