[WordPress] 外掛分享: PageMagic – Page Lists

WordPress 外掛 PageMagic – Page Lists 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「PageMagic – Page Lists」是 2020-06-29 上架。
  • 目前有 40 個安裝啟用數。
  • 上一次更新是 2020-06-30,距離現在已有 1768 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 7 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

meaghanbass |

外掛標籤

page nav | listpages | page tree | list pages | page navigation |

內容簡介

建立網站頁面的視覺階層。選項包括列出所有頁面、子頁面、目前頁面的同層頁面。也可以顯示有特色圖像和自訂摘要的頁面清單。

快速短碼

[pagemagic_listall] - 網站上所有頁面的階層樹狀清單(用於顯示網站地圖)
[pagemagic_subpages] - 目前頁面的子頁面的階層樹狀清單
[pagemagic_siblings] - 目前頁面的同層頁面的階層樹狀清單
[pagemagic_image_excerpt] - 具有特色圖像和摘要的頁面清單

範例參數

[pagemagic_listall child_of="4" depth="2" exclude="6,7,8"]
[pagemagic_image_excerpt child_of="4" exclude="6,7,8" image_width="50" image_height="50"]

頁面清單參數

[pagemagic_listall] - 全部頁面的階層清單
[pagemagic_subpages] - 目前頁面的子頁面的階層清單;與 [pagemagic_listall child_of="current"] 相同
[pagemagic_siblings] - 目前頁面的同層頁面的階層清單;與 [pagemagic_listall child_of="parent"] 相同
depth - 包括清單中頁面階層的層級數:例如 [pagemagic_listall depth="3"],預設可以無限制遞迴(depth=”0″);使用 [pagemagic_listall depth="-1"] 可以將頁面展開為平面清單,不考慮階層深度
child_of - 使用頁面 ID 顯示單一子頁面:[pagemagic_listall child_of="4"]
exclude - 定義要從清單中排除的頁面 ID 的逗號分隔列表:[pagemagic_listall exclude="6,7,8"];可以使用 [pagemagic_listall exclude="current"] 排除目前頁面
exclude_tree - 定義要從清單中排除的父頁面 ID 及其所有子頁面的逗號分隔列表:[pagemagic_listall exclude_tree="7,10"]
include - 包含頁面 ID 的逗號分隔列表:[pagemagic_listall include="6,7,8"]
title_li - 設定頁面清單標題的文字和樣式:[pagemagic_listall title_li="

List of pages

"];預設沒有標題(title_li=””)
authors - 只包含此作者 ID 的頁面清單的逗號分隔列表:[pagemagic_listall authors="2,5"];預設包含所有作者(authors=””)
number - 設置要顯示的頁數:[pagemagic_listall number="10"];預設不限制數量(number=””)
offset - 在收集頁面集之前跳過的頁數:[pagemagic_listall offset="5"];預設沒有位移(offset=””)
post_type - 列出與特定分層式文章類型相關聯的清單:[pagemagic_listall post_type="page"];預設值為 page;可能的值有 page、revision、分層式自訂文章類型(post 不是分層式文章類型)
post_status - 所有文章狀態類型的逗號分隔列表:[pagemagic_listall post_status="private"];預設值為 publish;可能的值為 publish、private、draft
meta_key 和 meta_value - 只包含具有自訂欄位鍵和自訂欄位值的頁面:[pagemagic_listall meta_key="metakey" meta_value="metaval"]
show_date - 在每個頁面旁顯示創建或上次修改日期:

原文外掛簡介

Create visual hierarchies of site pages. Options to list all pages, subpages, current page siblings. Also able to show page featured image and custom excerpts.
Quick Shortcodes

[pagemagic_listall] – hierarchical tree of all pages on site (useful to show sitemap of the site)
[pagemagic_subpages] – hierarchical tree of subpages to the current page
[pagemagic_siblings] – hierarchical tree of sibling pages to the current page
[pagemagic_image_excerpt] – list of pages with featured image and with excerpt

Example Parameters

[pagemagic_listall child_of="4" depth="2" exclude="6,7,8"]
[pagemagic_image_excerpt child_of="4" exclude="6,7,8" image_width="50" image_height="50"]

Page List Parameters

[pagemagic_listall] – list of all pages as the hierarchical list
[pagemagic_subpages] – list of subpages to the current page as the hierarchical list; Same as: [pagemagic_listall child_of="current"]
[pagemagic_siblings] – list of sibling pages to the current page as the hierarchical list; Same as: [pagemagic_listall child_of="parent"]
depth – how many levels in the hierarchy of pages are to be included in the list: [pagemagic_listall depth="3"]; by default depth is unlimited (depth=”0″); Displays pages at any depth and arranges them in a flat list: [pagemagic_listall depth="-1"]
child_of – displays the sub-pages of a single Page by ID: [pagemagic_listall child_of="4"]
exclude – define a comma-separated list of Page IDs to be excluded from the list: [pagemagic_listall exclude="6,7,8"]; You may exclude current page: [pagemagic_listall exclude="current"]
exclude_tree – define a comma-separated list of parent Page IDs and all its subpages to be excluded: [pagemagic_listall exclude_tree="7,10"]
include – include a comma-separated list of Page IDs into the list: [pagemagic_listall include="6,7,8"]
title_li – set the text and style of the Page list’s heading: [pagemagic_listall title_li="

List of pages

"]; by default there is no title (title_li=””)
authors – only include pages authored by the authors in this comma-separated list of author IDs: [pagemagic_listall authors="2,5"]; by default all authors are included (authors=””)
number – sets the number of pages to display: [pagemagic_listall number="10"]; by default the number is unlimited (number=””)
offset – the number of pages to pass over (or displace) before collecting the set of pages: [pagemagic_listall offset="5"]; by default there is no offset (offset=””)
post_type – list associated with a certain hierarchical Post Type [pagemagic_listall post_type="page"]; by default: (post_type=”page”); possible values: page, revision, Hierarchical Custom Post Types (‘post’ is not a Hierarchical Post Type)
post_status – a comma-separated list of all post status types: [pagemagic_listall post_status="private"]; by default: (post_status=”publish”); possible values: publish, private, draft
meta_key and meta_value – only include the pages that have this Custom Field Key and this Custom Field Value: [pagemagic_listall meta_key="metakey" meta_value="metaval"]
show_date – display creation or last modified date next to each Page: [pagemagic_listall show_date="created"]; possible values: created, modified, updated
date_format – the format of the Page date set by the show_date parameter: [pagemagic_listall date_format="l, F j, Y"]; by default use the date format configured in your WordPress options
sort_column – sort the list of pages by column: [pagemagic_listall sort_column="menu_order"]; by default: (sort_column=”menu_order, post_title”); possible values: post_title, menu_order, post_date (sort by creation time), post_modified, ID, post_author, post_name (sort by page slug)
sort_order – the sort order of the list of pages (either ascending or descending): [pagemagic_listall sort_order="desc"]; by default: (sort_order=”asc”); possible values: asc, desc
link_before – sets the text or html that precedes the link text inside link tag: [pagemagic_listall link_before=""]; you may specify html tags only in the HTML tab in your Rich-text editor
link_after – sets the text or html that follows the link text inside link tag: [pagemagic_listall link_after="
"]; you may specify html tags only in the HTML tab in your Rich-text editor
class – the CSS class for list of pages: [pagemagic_listall class="listclass"]; by default the class is empty (class=””)
columns – for splitting list of pages into columns: [pagemagic_listall class="pagemagic-cols-2"]; available classes: pagemagic-cols-2, pagemagic-cols-3, pagemagic-cols-4, pagemagic-cols-5; works in all modern browsers and IE10+; columns are responsive and become 1 column at less than 768px

[More info] about parameters (https://developer.wordpress.org/reference/functions/get_pages/#parameters) for [pagemagic_listall].
Parameters for Page List Excerpts

[pagemagic_image_excerpt] – by default shows list of subpages to current page; but if there is no subpages than all pages will be shown
show_image – show or hide featured image [pagemagic_image_excerpt show_image="0"]; “show_image” have higher priority than “show_first_image”; by default: show_image=”1″
show_first_image – show or hide first image from content if there is no featured image [pagemagic_image_excerpt show_first_image="1"]; by default: show_first_image=”0″
show_title – show or hide title [pagemagic_image_excerpt show_title="0"]; by default: show_title=”1″
show_content – show or hide content [pagemagic_image_excerpt show_content="0"]; by default: show_content=”1″
more_tag – output all content before and after more tag: [pagemagic_image_excerpt more_tag="0"]; this parameter does not add “more-link” to the end of content, it just cut content before more-tag; “more_tag” parameter have higher priority than “limit_content”; by default the more_tag is enabled (more_tag=”1″) and showing only content before more tag
limit_content – content is limited by “more-tag” if it is exist or by “limit_content” parameter [pagemagic_image_excerpt limit_content="100"]; by default: limit_content=”250″
image_width – width of the image [pagemagic_image_excerpt image_width="80"]; by default: image_width=”50″
image_height – height of the image [pagemagic_image_excerpt image_height="80"]; by default: image_height=”50″
child_of – displays the sub-pages of a single Page by ID: [pagemagic_image_excerpt child_of="4"]; by default it shows subpages to the current page
parent – list those pages that have the provided single page only ID as parent: [pagemagic_image_excerpt parent="4"]; by default parent=”-1″ and depth is unlimited
sort_column – sort the list of pages by column: [pagemagic_image_excerpt sort_column="menu_order"]; by default: (sort_column=”menu_order, post_title”); possible values: post_title, menu_order, post_date (sort by creation time), post_modified, ID, post_author, post_name (sort by page slug)
sort_order – the sort order of the list of pages (either ascending or descending): [pagemagic_image_excerpt sort_order="desc"]; by default: (sort_order=”asc”); possible values: asc, desc;* hierarchical – display subpages below their parent page [pagemagic_image_excerpt hierarchical="0"]; by default: hierarchical=”1″
hierarchical – display subpages below their parent page [pagemagic_image_excerpt hierarchical="0"]; by default: hierarchical=”1″
exclude – define a comma-separated list of Page IDs to be excluded from the list: [pagemagic_image_excerpt exclude="6,7,8"]
exclude_tree – define a comma-separated list of parent Page IDs and all its subpages to be excluded: [pagemagic_image_excerpt exclude_tree="7,10"]
include – include a comma-separated list of Page IDs into the list: [pagemagic_image_excerpt include="6,7,8"]
meta_key and meta_value – only include the pages that have this Custom Field Key and this Custom Field Value: [pagemagic_image_excerpt meta_key="metakey" meta_value="metaval"]
authors – only include the pages written by the given author(s) [pagemagic_image_excerpt authors="6,7,8"]
number – sets the number of pages to display: [pagemagic_image_excerpt number="10"]; by default the number is unlimited (number=””)
offset – the number of pages to pass over (or displace) before collecting the set of pages: [pagemagic_image_excerpt offset="5"]; by default there is no offset (offset=””)
post_type – list associated with a certain hierarchical Post Type [pagemagic_image_excerpt post_type="page"]; by default: (post_type=”page”); possible values: page, revision, Hierarchical Custom Post Types (‘post’ is not a Hierarchical Post Type)
post_status – a comma-separated list of all post status types: [pagemagic_image_excerpt post_status="private"]; by default: (post_status=”publish”); possible values: publish, private, draft
class – the CSS class for list of pages: [pagemagic_image_excerpt class="listclass"]; by default the class is empty (class=””)
strip_tags – strip tags or not: [pagemagic_image_excerpt strip_tags="0"]; by default the tags are stripped (strip_tags=”1″)
strip_shortcodes – strip registered shortcodes or not: [pagemagic_image_excerpt strip_shortcodes="0"]; by default shortcodes are stripped (strip_shortcodes=”1″) and all registered shortcodes are removed
show_child_count – show count of subpages: [pagemagic_image_excerpt show_child_count="1"]; by default the child_count is disabled (show_child_count=”0″); If show_child_count=”1″, but count of subpages=0, than child count is not shown
child_count_template – the template of child_count: [pagemagic_image_excerpt show_child_count="1" child_count_template="Subpages: %child_count%"]; by default child_count_template=”Subpages: %child_count%”
show_meta_key – show or hide meta key: [pagemagic_image_excerpt show_meta_key="your_meta_key"]; by default the show_meta_key is empty (show_meta_key=””); If show_meta_key is enabled, but meta_value is empty, than meta_key is not shown
meta_template – the template of meta: [pagemagic_image_excerpt show_meta_key="your_meta_key" meta_template="Meta: %meta%"]; by default meta_template=”%meta%”
columns – for splitting list of pages into columns: [pagemagic_image_excerpt class="pagemagic-cols-2"]; available classes: pagemagic-cols-2, pagemagic-cols-3, pagemagic-cols-4, pagemagic-cols-5; works in all modern browsers and IE10+; columns are responsive and become 1 column at less than 768px

[More info] about parameters (https://developer.wordpress.org/reference/functions/get_pages/#parameters) for [pagemagic_image_excerpt].

各版本下載點

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

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


1.0 | 1.1 | trunk |

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

  • Prime Strategy Page Navi 》這個外掛可以在首頁和檔案庫(類別、作者、日期等等)顯示頁面導覽(分頁)。你可以使用多個參數,並且靈活地自訂分頁。以下為相關示範和 CSS 範例。, , 示範...。
  • Easy WP Page Navigation 》這個外掛將創建一個新的頁面導航。易於使用和自定義。, 使用這個外掛,您無需擔心博客分頁。, 導航有多種風格可供選擇,您可以在截圖中查看。, 要在您的博客...。
  • Quick Page Navigation 》「快速頁面導航(Quick Page Navigation)」是專為開發人員和設計師所設計的外掛,讓他們方便地瀏覽多個 WordPress 頁面。在 WordPress 內經常切換頁面是很煩...。
  • List of Contents 》總結:「List of Contents」是一個強大且使用者友好的WordPress外掛程式,可以自動根據內容中的標題生成文章、頁面和自訂文章類型的目錄。這個外掛支援多種文...。
  • Edit My Breadcrumb 》Edit My Breadcrumb 是一個 WordPress 外掛,可讓您在頁面中加入面包屑。它可以完全按照您的網站需求進行自定義設置。它有兩種實施選擇方式:Web 開發人員可...。

文章
Filter
Mastodon