[WordPress] 外掛分享: Sitemap

WordPress 外掛 Sitemap 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Sitemap」是 2011-04-16 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 30000 個安裝啟用數。
  • 上一次更新是 2023-01-08,距離現在已有 847 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 14 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

webvitaly |

外掛標籤

page | sitemap | pagelist | subpages | page list |

內容簡介

此程式碼已經移至Page-list plugin。請刪除原先的Sitemap外掛程式,並改為安裝Page-list plugin。不用擔心,這兩個外掛程式的功能是相同的。

高級 iFrame Pro
Page-list
全部 Page-list 參數
捐款
GitHub

簡碼:

[pagelist] – 在網站上列出所有頁面的層級樹狀結構(有助於顯示網站地圖);
[subpages] – 顯示當前頁面的子層級樹狀結構;
[siblings] – 顯示當前頁面的同層級樹狀結構;
[pagelist_ext] – 列出帶有特色圖像和摘要的頁面;

帶有額外參數的範例:

[pagelist child_of="4" depth="2" exclude="6,7,8"]
[pagelist_ext child_of="4" exclude="6,7,8" image_width="50" image_height="50"]
全部 Page-list 參數

[pagelist]、[subpages] 和 [siblings] 的參數:

[pagelist] – 預設會列出所有頁面的樹狀結構表列;
[subpages] – 預設會列出當前頁面的子層級樹狀結構表列;
[siblings] – 預設會列出當前頁面的同層級樹狀結構表列;
depth – 預設為不限深度(depth=0),但您可以使用[pagelist depth="3"]方式指定,以指定頁面層次樹狀結構列表中要包含的頁面層次的數目;如果要顯示平面列表,而不是樹狀結構,請使用此簡碼:[pagelist depth="-1"];
child_of – 如果要顯示特定頁面的子頁面,請使用此簡碼:[pagelist child_of="4"],其中4 是特定頁面的 ID;如果要顯示當前頁面的子頁面,請使用此簡碼:[subpages] 或 [pagelist child_of="current"] 或 [pagelist child_of="this"];如果要顯示當前頁面的同層級頁面,請使用此簡碼:[siblings] 或 [pagelist child_of="parent"];
exclude – 如果要從列表中排除某些頁面,請使用此簡碼:[pagelist exclude="6,7,8"],其中排除參數接受逗號分隔的頁面 ID 列表;您可以使用此簡碼排除當前頁面:[pagelist exclude="current"];
exclude_tree – 如果要從列表中排除頁面樹,請使用此簡碼:[pagelist exclude_tree="7,10"],其中exclude_tree 參數接受逗號分隔的頁面 ID 列表(所有這些頁面及其子頁面都將被排除);
include – 如果要在頁面列表中包含特定頁面,請使用此簡碼:[pagelist include="6,7,8"],其中include 參數接受逗號分隔的頁面 ID 列表;
title_li – 如果要指定頁面列表的標題,請使用此簡碼:[pagelist title_li="<

原文外掛簡介

Code moved to Page-list plugin Please, delete Sitemap plugin and install Page-list plugin instead. Don’t be afraid, the functionality of these plugins is the same.

Advanced iFrame Pro
Page-list
all Page-list params
Donate
GitHub

shortcodes:

[pagelist] – hierarchical tree of all pages on site (useful to show sitemap of the site);
[subpages] – hierarchical tree of subpages to the current page;
[siblings] – hierarchical tree of sibling pages to the current page;
[pagelist_ext] – list of pages with featured image and with excerpt;

examples with aditional parameters:

[pagelist child_of="4" depth="2" exclude="6,7,8"]
[pagelist_ext child_of="4" exclude="6,7,8" image_width="50" image_height="50"]
all Page-list params

Parameters for [pagelist], [subpages] and [siblings]:

[pagelist] – by default shows list of all pages as the hierarchical list;
[subpages] – by default shows list of subpages to the current page as the hierarchical list;
[siblings] – by default shows list of sibling pages to the current page as the hierarchical list;
depth – means how many levels in the hierarchy of pages are to be included in the list, by default depth is unlimited (depth=0), but you can specify it like this: [pagelist depth="3"]; If you want to show flat list of pages (not hierarchical tree) you can use this shortcode: [pagelist depth="-1"];
child_of – if you want to show subpages of the specific page you can use this shortcode: [pagelist child_of="4"] where 4 is the ID of the specific page; If you want to show subpages of the current page you can use this shortcodes: [subpages] or [pagelist child_of="current"] or [pagelist child_of="this"]; If you want to show sibling pages of the current page you can use this shortcodes: [siblings] or [pagelist child_of="parent"];
exclude – if you want to exclude some pages from the list you can use this shortcode: [pagelist exclude="6,7,8"] where exclude parameter accepts comma-separated list of Page IDs; You may exclude current page with this shortcode: [pagelist exclude="current"];
exclude_tree – if you want to exclude the tree of pages from the list you can use this shortcode: [pagelist exclude_tree="7,10"] where exclude_tree parameter accepts comma-separated list of Page IDs (all this pages and their subpages will be excluded);
include – if you want to include certain pages into the list of pages you can use this shortcode: [pagelist include="6,7,8"] where include parameter accepts comma-separated list of Page IDs;
title_li – if you want to specify the title of the list of pages you can use this shortcode: [pagelist title_li="

List of pages

"]; by default there is no title (title_li=””);
number – if you want to specify the number of pages to be included into list of pages you can use this shortcode: [pagelist number="10"]; by default the number is unlimited (number=””);
offset – if you want to pass over (or displace) some pages you can use this shortcode: [pagelist offset="5"]; by default there is no offset (offset=””);
meta_key – if you want to include the pages that have this Custom Field Key you can use this shortcode: [pagelist meta_key="metakey" meta_value="metaval"];
show_date – if you want to show the date of the page you can use this shortcode: [pagelist show_date="created"]; you can use this values for show_date parameter: created, modified, updated;
menu_order – if you want to specify the column by what to sort you can use this shortcode: [pagelist sort_column="menu_order"]; by default order columns are menu_order and post_title (sort_column=”menu_order, post_title”); you can use this values for sort_column parameter: post_title, menu_order, post_date (sort by creation time), post_modified (sort by last modified time), ID, post_author (sort by the page author’s numeric ID), post_name (sort by page slug);
sort_order – if you want to change the sort order of the list of pages (either ascending or descending) you can use this shortcode: [pagelist sort_order="desc"]; by default sort_order is asc (sort_order=”asc”); you can use this values for sort_order parameter: asc, desc;
link_before – if you want to specify the text or html that precedes the link text inside the link tag you can use this shortcode: [pagelist link_before=""]; you may specify html tags only in the HTML tab in your Rich-text editor;
link_after – if you want to specify the text or html that follows the link text inside the link tag you can use this shortcode: [pagelist link_after="
"]; you may specify html tags only in the HTML tab in your Rich-text editor;
class – if you want to specify the CSS class for list of pages you can use this shortcode: [pagelist class="listclass"]; by default the class is empty (class=””);

Parameters for [pagelist_ext]:

[pagelist_ext] – 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 [pagelist_ext 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 [pagelist_ext show_first_image="1"]; by default: show_first_image=”0″;
show_title – show or hide title [pagelist_ext show_title="0"]; by default: show_title=”1″;
show_content – show or hide content [pagelist_ext show_content="0"]; by default: show_content=”1″;
more_tag – if you want to output all content before and after more tag use this shortcode: [pagelist_ext 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 [pagelist_ext limit_content="100"]; by default: limit_content=”250″;
image_width – width of the image [pagelist_ext image_width="80"]; by default: image_width=”50″;
image_height – height of the image [pagelist_ext image_height="80"]; by default: image_height=”50″;
child_of – if you want to show subpages of the specific page you can use this shortcode: [pagelist_ext child_of="4"] where 4 is the ID of the specific page; by default it shows subpages to the current page;
parent – if you want to show subpages of the specific page only you can use this shortcode: [pagelist_ext parent="4"] where 4 is the ID of the specific page and the depth will be only one level; by default parent=”-1″ and depth is unlimited;
sort_order – if you want to change the sort order of the list of pages (either ascending or descending) you can use this shortcode: [pagelist_ext sort_order="desc"]; by default: sort_order=”asc”; you can use this values for sort_order parameter: asc, desc;
sort_column – if you want to specify the column by what to sort you can use this shortcode: [pagelist_ext sort_column="menu_order"]; by default order columns are sort_column and post_title (sort_column=”menu_order, post_title”); you can use this values for sort_column parameter: post_title, menu_order, post_date (sort by creation time), post_modified (sort by last modified time), ID, post_author (sort by the page author’s numeric ID), post_name (sort by page slug);
hierarchical – display subpages below their parent page [pagelist_ext hierarchical="0"]; by default: hierarchical=”1″;
exclude – if you want to exclude some pages from the list you can use this shortcode: [pagelist_ext exclude="6,7,8"] where exclude parameter accepts comma-separated list of Page IDs;
exclude_tree – if you want to exclude the tree of pages from the list you can use this shortcode: [pagelist_ext exclude_tree="7,10"] where exclude_tree parameter accepts comma-separated list of Page IDs (all this pages and their subpages will be excluded);
include – if you want to include certain pages into the list of pages you can use this shortcode: [pagelist_ext include="6,7,8"] where include parameter accepts comma-separated list of Page IDs;
meta_key – if you want to include the pages that have this Custom Field Key you can use this shortcode: [pagelist_ext meta_key="metakey" meta_value="metaval"];
authors – only include the pages written by the given author(s) [pagelist_ext authors="6,7,8"];
number – if you want to specify the number of pages to be included into list of pages you can use this shortcode: [pagelist_ext number="10"]; by default the number is unlimited (number=””);
offset – if you want to pass over (or displace) some pages you can use this shortcode: [pagelist_ext offset="5"]; by default there is no offset (offset=””);
post_type – [pagelist_ext post_type="page"];
post_status – [pagelist_ext post_status="publish"];
class – if you want to specify the CSS class for list of pages you can use this shortcode: [pagelist_ext class="listclass"]; by default the class is empty (class=””);
strip_tags – if you want to output the content with tags use this shortcode: [pagelist_ext strip_tags="0"]; by default the strip_tags is enabled (strip_tags=”1″);
strip_shortcodes – if you want to output the content with shortcode use this shortcode: [pagelist_ext strip_shortcodes="0"]; by default the strip_shortcodes is enabled (strip_shortcodes=”1″) and all registered shortcodes are removed;
show_child_count – if you want to show child count you can use this shortcode: [pagelist_ext 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 showing;
child_count_template – if you want to specify the template of child_count you can use this shortcode: [pagelist_ext show_child_count="1" child_count_template="Subpages: %child_count%"]; by default child_count_template=”Subpages: %child_count%”;
show_meta_key – if you want to show meta key you can use this shortcode: [pagelist_ext 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 showing;
meta_template – if you want to specify the template of meta you can use this shortcode: [pagelist_ext show_meta_key="your_meta_key" meta_template="Meta: %meta%"]; by default meta_template=”%meta%”;

各版本下載點

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

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


1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 | 2.9 | 3.0 | 3.1 | 3.2 | 3.3 | 3.4 | 3.5 | 3.6 | 3.7 | 3.8 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 | 1.0.0 | 1.1.0 | 1.2.0 | 1.3.0 | trunk |

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

文章
Filter
Apply Filters
Mastodon