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

WP Sitemap

外掛說明

Place a shortcode into a post or a page (page recommended) and your sitemap will apear as a list with page numbers.

Shortcode simple example

[wp_sitemap]

Features

  • Support for both posts and pages
  • Support for page numbers and option to place it on top or bottom
  • Support for include and exclude pages / posts
  • Support for disable posts / pages
  • Support for order by and sort order
  • No data added to the database
  • No settings page added into admin
  • Sitemap settings are added through a shortcode added in a page
  • WordPress built in functions are used to make a very small code

Shortcode advanced example

[wp_sitemap pages=”false” exclude=”9,21,34″]

Parameters

exclude

  • (string) Define a comma-separated list of Page IDs to be excluded from the list (example: ‘exclude=3,7,31’). There is no default value.

include

  • (string) Only include certain Pages or Posts in the sitemap. Like exclude, this parameter takes a comma-separated list of Page IDs. There is no default value.

posts

  • (string) Include Posts. Valid values:
    • true – Posts are included. (Default)
    • false – Posts are not included.

pages

  • (string) Include Pages. Valid values:
    • true – Pages are included. (Default)
    • false – Pages are not included.

sort_column

  • (string) Sorts the list of Posts and Pages in a number of different ways. The default setting is sort newest first by Post / Page date.
    • ‘post_date’ – Published Post / Page date. (Default)
    • ‘post_title’ – The Post or Page title.
    • ‘post_modified’ – The updated Post or Page date.
    • ‘comment_count’ – The number of comments on a Post or Page.
    • Other fields in the Posts table.

sort_order

  • (string) Change the sort order of the list of Pages (either ascending or descending). The default is ascending. Valid values:
    • ‘ASC’ – Sort from lowest to highest.
    • ‘DESC’ – Sort from highest to lowest. (Default)

paging_position

  • (string) The position of the page numbers. Valid values:
    • ‘top’ – Add page numbers above the sitemap list
    • ‘bottom’ – Add the page numbers below the sitemap list (Default)
    • ‘both’ – Add page numbers above and below the sitemap list

post_count

  • (string) Sets the number of Pages and Posts to display. The default is 50.

Shortcode default settings

If you don’t know what this means, just ignore this section.

  • exclude => 0
  • include => 0
  • posts => “true”
  • pages => “true”
  • sort_column => “post_date”
  • sort_order => “DESC”
  • paging_position => “bottom”
  • post_count => 50

安裝方式

This section describes how to install the plugin and get it working.

  1. Upload the folder ‘wp-sitemap’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the shortcode [wp_sitemap] to a post or a page (page rekommended)
  4. Look at the post / page. Done!

常見問題集

Where is the settings page?

There are none. You can add settings into the shortcode.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WP Sitemap〉的開發相關工作。

參與者

將〈WP Sitemap〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial release