前言介紹
- 這款 WordPress 外掛「HTML Page Sitemap」是 2009-09-05 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2025-04-22,距離現在已有 12 天。
- 外掛最低要求 WordPress 3.7 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 4.3 以上。
- 有 22 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
amandato |
外掛標籤
page | pages | sitemap | shortcode | html sitemap |
內容簡介
此簡單外掛可透過輸入簡短代碼 [html_sitemap]於網頁內容中,新增一個頁面的 HTML 網站地圖(非 XML),但不包含文章。此外掛可設定特定深度、從特定父頁面開始、包括/排除特定子頁面的網站地圖。簡短代碼屬性包括 sort_column、sort_order、exclude、include、depth、child_of、meta_key、meta_value、authors、number、offset、post_type 和 post_status,此外還有 wp_list_pages 函數所接受的所有選項。除了 wp_list_pages 選項外,還可以設定 class、id 和 ordered_list_type 選項。
此外掛適用於將 WordPress 用作 CMS 的使用者,有關 wp_list_pages 的完整選項清單,請參閱相關文件。此外掛中可設定以下選項:
使用者可以指定 class 和 id 屬性為 HTML 網站地圖
- 列表標籤設定 class 或 id 值。
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「HTML Page Sitemap」來進行安裝。
WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
Woody code snippets – Insert Header Footer Code, AdSense Ads 》需要專業的支援嗎?, 免費獲取支援, 開始獲得高級支援, , 停止反覆使用相同的內容!, 停止插入 function.php 中的 PHP 代碼!, 停止將 Google Analytics、Yan...。
Column Shortcodes 》此外掛提供簡單易用的短碼,在您的文章或頁面中輕鬆創建欄位。有時候,您只需要將網頁切成不同的欄位。使用此外掛,您只需選擇一個欄位的短碼,便可將欄位加...。
amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
Shortcode in Menus 》此外掛讓你可以在 WordPress 導覽選單中使用簡碼,以便可以動態生成連結。也可以讓你在導覽選單中添加完整的 HTML 段落。, 使用方法, 查看截圖。, 另外,查看...。
Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。
Post Snippets – Custom WordPress Code Snippets Customizer 》, 建立自訂短碼和可重複使用的內容,並將它們插入到您的文章和頁面中。, , 此外掛讓您建立 HTML、PHP 程式碼或常用文字片段的庫。在文章和頁面中,您可以使用...。
child_of 的值可以是數字頁面 ID(整數),或使用自訂的 CURRENT 或 PARENT 值。值「CURRENT」會使用當前頁面的 ID,值「PARENT」則使用當前頁面的父親 ID。
ordered_list_type 屬性是 HTML 網站地圖專屬選項,可指定有序清單類型。若未設定 ordered_list_type,將使用無序清單(預設)。
ordered_list_type="1" - 列表項目將以數字編號
ordered_list_type="A" - 列表項目將以大寫字母編號
ordered_list_type="a" - 列表項目將以小寫字母編號
ordered_list_type="I" - 列表項目將以大寫羅馬數字編號
ordered_list_type="i" - 列表項目將以小寫羅馬數字編號
注意:此外掛僅適用於分層自訂文章類型,如果您的文章類型不是分層的,此外掛將無法運作。
範例
第一個範例展示如何添加整個站點的網站地圖。
[html_sitemap]
此範例shortcode將在頁面中添加一個網站地圖,顯示深度限制為 3,並排除頁面 ID 為 708。
[html_sitemap depth=3 exclude=708]
此範例shortcode將添加一個網站地圖到頁面,僅顯示當前頁面的子頁面和孫頁面。
[html_sitemap depth=2 child_of=CURRENT]
此範例shortcode將添加一個網站地圖到頁面,顯示父頁面的子頁面和孫頁面(也包括當前頁面)。
[html_sitemap depth=2 child_of=PARENT]
此範例shortcode將添加一個網站地圖,顯示頁面修改日期,並按照選單順序號碼對頁面進行排序。
[html_sitemap show_date=modified sort_column=menu_order]
此範例shortcode將排除多個 ID 為 708、1024 和 42 的頁面。
[html_sitemap exclude="708,1024,42"]
原文外掛簡介
This simple plugin adds an HTML (Not XML) sitemap of your pages (not posts) by entering the shortcode [html_sitemap] in the page content. This simple plugin is configured with the [html_sitemap] shortcode. This plugin can display a sitemap with specific depths, from a specific parent page and include/exclude specific children. Shortcode attributes include sort_column, sort_order, exclude, include, depth, child_of, meta_key, meta_value, authors, number, offset, post_type, and post_status, everything the wp_list_pages function accepts. In addition to the wp_list_pages options you can also set class, id, and ordered_list_type options.
This plugin is perfect for those who use WordPress as a CMS.
Please see documentation for the wp_list_pages for a complete list of options.
The following options may be configured in addition to options documented in wp_list_pages:
The class and id attributes may specified set class or id values for the initial HTML Page Sitemap
- list tag.
The child_of attribute value can be a numeric page ID (integer), or use the custom value CURRENT or PARENT. The value “CURRENT” will use the current page’s ID. The value “PARENT” will uses the curent page’s parent ID.
The ordered_list_type attribute is an HTML Page Sitemap plugin exclusive option for specfiying an ordered list type. Not setting a ordered_list_type will use an unordered list (default).
ordered_list_type="1" – The list items will be numbered with numbers
ordered_list_type="A" – The list items will be numbered with uppercase letters
ordered_list_type="a" – The list items will be numbered with lowercase letters
ordered_list_type="I" – The list items will be numbered with uppercase roman numbers
ordered_list_type="i" – The list items will be numbered with lowercase roman numbers
Note: This plugin only works with Hierarchical Custom Post Types. This plugin will not work if your post type is not heirarchical.
Examples
First example shows how to add a sitemap for the entire site.
[html_sitemap]
Example shortcode will add a sitemap to a page displaying a depth limit of 3 and exclude page ID 708.
[html_sitemap depth=3 exclude=708]
Example shortcode will add a sitemap to a page displaying only children and grandchildren of the current page.
[html_sitemap depth=2 child_of=CURRENT]
Example shortcode will add a sitemap to a page displaying children and grandchildren of the parent page (would include the curent page as well).
[html_sitemap depth=2 child_of=PARENT]
Example shortcode will add a sitemap displaying the page modified date with the pages sorted by the menu order number.
[html_sitemap show_date=modified sort_column=menu_order]
Example shortcode excluding multiple pages with ids 708, 1024 and 42.
[html_sitemap exclude="708,1024,42"]
Example shortcode will add a class attribute to the
- tag.
[html_sitemap class="custom-class"]
Example shortcode will add an id attribute to the
- tag.
[html_sitemap id="custom-element-id"]
Example shortcode will display an ordered list using lowercase letters with a depth of 1.
[html_sitemap ordered_list_type="a" depth=1]
For the latest information visit the website.
ATTENTION: HTML-SITEMAP SHORTCODE HAS CHANGED
Though html-sitemap still works, the new HTML Sitemap shortcode is html_sitemap. The dash/hyphen may not get processed correctly if other plugins use the same prefix such as the Syntax Highlighter plugin. read more, and more
Contributors
Angelo Mandato, Founder and CTO of Painless Analytics – Plugin author
各版本下載點
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.2 | 1.3 | 1.0.0 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.6 | 1.3.7 | trunk |
延伸相關外掛(你可能也想知道)