這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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 <ul> like <ul id="id">
  • ‘class’: Adds classes to <ul> like <ul class="clesses">
  • ‘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 <ul> tags. Default ‘Pages’.

螢幕截圖

  • Page list view
  • Site map option page.

安裝

Plugin easy to install.

e.g.

  • Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  • Activate the plugin through the ‘Plugins’ screen in WordPress
  • Create a page.
  • Past these shortcode in to page.

常見問題

Installation Instructions

Plugin easy to install.

e.g.

  • Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  • Activate the plugin through the ‘Plugins’ screen in WordPress
  • Create a page.
  • Past these shortcode in to page.
We can use custom post type and post in sitemap

Yes, Go to Setting and click on “HTML Site Map” and checked CPT and post which you wont to list in site map.

We can exclude post or page from site map

Yes, Put comma(,) separated post and page id in Field “Exclude post from site map”.

評價

閱讀全部2個評價

貢獻者及開發者

“WP Html Page Sitemap” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Html Page Sitemap 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.1

  • Include all post type in site map.

2.0

  • new version update

1.0

  • First stable release.