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

WordPress 外掛 WP Html Page Sitemap 的封面圖片。

前言介紹

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

外掛協作開發者

pa1 |

外掛標籤

wp | page | sitemap | html sitemap | page sitemap |

內容簡介

描述

這是一個簡單且輕量的外掛程式,用於在單個頁面中顯示頁面連結。前往設置並點擊選項“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 添加到

    中,如

      ‘class’: 將類添加到
        中,如

          ‘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 或空值將導致沒有標題,並且列表將不會用無序列表
            標記包裹起來。默認為 ‘Pages’。

            原文外掛簡介

            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