[WordPress] 外掛分享: WP Html Page Sitemap

首頁外掛目錄 › WP Html Page Sitemap
WordPress 外掛 WP Html Page Sitemap 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
200+
安裝啟用
★★★★★
5/5 分(2 則評價)
3238 天前
最後更新
問題解決
WordPress 2.7.0+ v2.2 上架:2016-05-14

內容簡介

描述

這是一個簡單且輕量的外掛程式,用於在單個頁面中顯示頁面連結。前往設置並點擊選項“HTML 網站地圖”,並選擇您要在網站地圖中顯示的文章類型。可用的參數如下:

sort_column
sort_order
exclude
include
depth
child_of
meta_key
meta_value
authors
number
offset
post_type
post_status

例子

簡單的示例。

[SITEMAP]

帶有參數的簡單示例。

[SITEMAP id=”” class=”” child_of=”” authors=”” date_format=”” depth=”” echo=”” exclude=”” include=”” link_after=”” link_before=”” post_type=”” post_status=”” show_date=”” sort_column=”” title_li=”” ]

參數描述:

‘id’: 將 id 添加到 <ul> 中,如 <ul id="id">
‘class’: 將類添加到 <ul> 中,如 <ul class="clesses">
‘child_of’: 按 ID 僅顯示單個頁面的子頁面。默認值為 0(所有頁面)。
‘authors’: (字符串)作者 ID 的逗號分隔列表。預設為空(所有作者)。
date_format’: (字符串)用於列出頁面的 PHP 日期格式。依賴於 ‘show_date’ 參數。默認值為 ‘date_format’ 選項的值。
‘depth’: (int)頁面層次結構中要包含在生成的列表中的層級數。接受 -1(任何深度)、0(所有頁面)、1(僅頂級頁面)和 n(具有到 n 深度的頁面)。預設為 0。
‘echo’: (bool)是否回顯頁面列表。預設為 true。
‘exclude’: (字符串)要排除的頁面 ID 的逗號分隔列表。
‘include’: (array)要包含的頁面 ID 的逗號分隔列表。
‘link_after’: (字符串)在頁面連結標籤後跟隨的文本或 HTML。默認值為 null。
‘link_before’: (字符串)在頁面連結標籤前面的文本或 HTML。默認值為 null。
‘post_type’: (字符串)要查詢的文章類型。默認為 ‘page’。
‘post_status’: (字符串)要包含的文章狀態的逗號分隔列表。默認為 ‘publish’。
‘show_date’: (字符串)是否為每個頁面顯示頁面發布或修改日期。接受 ‘modified’ 或任何其他值。空值隱藏日期。
‘sort_column’: (字符串)用於按列名對頁面排序的逗號分隔列表。接受 ‘post_author’、‘post_date’、‘post_title’、‘post_name’、‘post_modified’、‘post_modified_gmt’、‘menu_order’、‘post_parent’、‘ID’、‘rand’ 或 ‘comment_count’。默認為 ‘post_title’。
‘title_li’: (字符串)列表標題。傳遞 null 或空值將導致沒有標題,並且列表將不會用無序列表 <ul> 標記包裹起來。默認為 ‘Pages’。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Html Page Sitemap」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Description
This is simple and light weighted plugin to display page links in a single page and go to setting and click option “HTML Site Map” and select post type which you wont to show in sitemap. Argument like:
sort_column
sort_order
exclude
include
depth
child_of
meta_key
meta_value
authors
number
offset
post_type
post_status

Examples

Simple exameple.
[SITEMAP]

Simple exameple with argument.

[SITEMAP id=”” class=”” child_of=”” authors=”” date_format=”” depth=”” echo=”” exclude=”” include=”” link_after=”” link_before=”” post_type=”” post_status=”” show_date=”” sort_column=”” title_li=”” ]
Parameter Description:

‘id’: Adds id to

    like

      ‘class’: Adds classes to

        like

          ‘clield_of’: Display only the sub-pages of a single page by ID. Default 0 (all pages).
          ‘authors’: (string) Comma-separated list of author IDs. Default empty (all authors).
          date_format’: (string) PHP date format to use for the listed pages. Relies on the ‘show_date’ parameter. Default is the value of ‘date_format’ option.
          ‘depth’: (int) Number of levels in the hierarchy of pages to include in the generated list. Accepts -1 (any depth), 0 (all pages), 1 (top-level pages only), and n (pages to the given n depth). Default 0.
          ‘echo’: (bool) Whether or not to echo the list of pages. Default true.
          ‘exclude’: (string) Comma-separated list of page IDs to exclude.
          ‘include’: (array) Comma-separated list of page IDs to include.
          ‘link_after’: (string) Text or HTML to follow the page link label. Default null.
          ‘link_before’: (string) Text or HTML to precede the page link label. Default null.
          ‘post_type’: (string) Post type to query for. Default ‘page’.
          ‘post_status’: (string) Comma-separated list of post statuses to include. Default ‘publish’.
          ‘show_date’: (string) Whether to display the page publish or modified date for each page. Accepts ‘modified’ or any other value. An empty value hides the date.
          ‘sort_column’: (string) Comma-separated list of column names to sort the pages by. Accepts ‘post_author’, ‘post_date’, ‘post_title’, ‘post_name’, ‘post_modified’, ‘post_modified_gmt’, ‘menu_order’, ‘post_parent’, ‘ID’, ‘rand’, or ‘comment_count’. Default ‘post_title’.
          ‘title_li’: (string) List heading. Passing a null or empty value will result in no heading, and the list will not be wrapped with unordered list

文章
Filter
Apply Filters
Mastodon