Title: XML Sitemaps
Author: Denis de Bernardy
Published: <strong>2009 年 1 月 26 日</strong>
Last modified: 2017 年 5 月 5 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/xml-sitemaps.svg)

# XML Sitemaps

 由 [Denis de Bernardy](https://profiles.wordpress.org/denis-de-bernardy/) 開發

[下載](https://downloads.wordpress.org/plugin/xml-sitemaps.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/xml-sitemaps/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/xml-sitemaps/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/xml-sitemaps/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/xml-sitemaps/#developers)

 [技術支援](https://wordpress.org/support/plugin/xml-sitemaps/)

## 外掛說明

The XML Sitemaps plugin for WordPress will automatically generate XML Sitemaps for
your site and notify search engines when they’re updated.

Contrary to other plugins that generate sitemap files, this one will add a rewrite
rule and store your cached sitemaps in the wp-content/sitemaps folder.

The XML Sitemaps plugin automatically assigns the rate of updates and the weight
based on statistics collected on your site.

Pings occur automatically, on an hourly basis, if the sitemap file is updated.

Lastly, and contrary to the zillions of plugins that try to do the same as this 
one, this plugin will use the WP internals to determine the number of blog, category
and tag pages on your site. This means it’ll play well with the likes of custom 
query string or [Semiologic SEO](http://www.semiologic.com/software/sem-seo/).

#### Configuration

Starting with version 2.0 there is now the ability to control the inclusion or exclusion
of date archives (years and months), author, category and tags pages in your sitemap.

Additionally specific pages can also be excluded by entering their page IDs.

Go to Settings->XML Sitemaps to update settings.

#### Help Me!

The [Plugin’s Forum](https://wordpress.org/support/plugin/xml-sitemaps) is the best
place to report issues.

## 安裝方式

 1. Upload the plugin folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. The plugin will then guide you through the installation process if any manual steps
    are necessary

## 常見問題集

  Installation Instructions

 1. Upload the plugin folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. The plugin will then guide you through the installation process if any manual steps
    are necessary

  The Sitemap isn’t getting generated

Actually, it is. But it’s not refreshed each time you save your posts and pages.
Doing so would be far too resource intensive on large sites.

It’s generated only when explicitly requested by visiting domain.com/sitemap.xml,
which is then cached in a physical file located in the /wp-content/sitemaps folder;
until it needs to be refreshed once again.

## 使用者評論

![](https://secure.gravatar.com/avatar/de04bd917bf3284292fffdb3f6bf3f5a22c182d9a8be650ecf6e7d6ea7d7e25e?
s=60&d=retro&r=g)

### 󠀁[best of the best](https://wordpress.org/support/topic/best-of-the-best-90/)󠁿

 [salem80](https://profiles.wordpress.org/salem80/) 2018 年 3 月 26 日

I was only need simple sitemap.xml file and this plugin did it for me thanks for
author for making our life less painful .

![](https://secure.gravatar.com/avatar/fb4f01464afdc9fe86d58d45fd89b65f3043b22c939d2febb241eec90e7b0be3?
s=60&d=retro&r=g)

### 󠀁[Simple, generates ONE sitemap.xml as expected](https://wordpress.org/support/topic/simple-generates-one-sitemap-xml-as-expected/)󠁿

 [Alexis Wilke](https://profiles.wordpress.org/alexiswilke/) 2018 年 2 月 25 日

I tested several XML sitemap versions and they like all want to generate thousands
of XML sitemaps. My site is never going to grow so much that a single .xml file 
wouldn’t be enough (you have plenty of room, really!) One important thing: I went
to settings and removed absolutely everything except the “Include Custom Posts”.
There is really no need to have archives in there. Google & Co. will find those 
pages, but they are not worth indexing anyway. As long as all your posts are indexed,
you’ll be just fine as far as SEO is concerned. I tested 4 other plugins, this is
my favorite so far.

![](https://secure.gravatar.com/avatar/8dc8d8bf6d36dd75a0013c1ed39bedb840f0fb2b8248341eeb95984a582dbfc5?
s=60&d=retro&r=g)

### 󠀁[Happy with the way the plugin works](https://wordpress.org/support/topic/works-fine-629/)󠁿

 [O_Breda](https://profiles.wordpress.org/o_breda/) 2018 年 4 月 30 日

I am pleased with the functionality of the plugin. Thanks! I’ve been using this 
plugin for a few years. No problems whatsoever.

![](https://secure.gravatar.com/avatar/74871bcc2e2fafcef440aed6296a6519c50733d299c82113e7c0b0f427c0f8f2?
s=60&d=retro&r=g)

### 󠀁[The only plugin that got me around a parsing error](https://wordpress.org/support/topic/the-only-plugin-that-got-me-around-a-parsing-error/)󠁿

 [grantmahy](https://profiles.wordpress.org/grantmahy/) 2016 年 9 月 3 日

Great stuff — I was encountering a parsing error likely due to an open php tag somewhere
in my theme and until I installed XML sitemaps no other sitemap plugins worked. 
Nice and simple to use and I like the way it stores a physical sitemap in a WP Folder.
thx to the author

![](https://secure.gravatar.com/avatar/c2977c3af8361b3c2c4bf2d7a9095a8cb3d194fab413370a7ac391410e025ddd?
s=60&d=retro&r=g)

### 󠀁[Good and simple.](https://wordpress.org/support/topic/good-and-simple-19/)󠁿

 [Skylar Bolton](https://profiles.wordpress.org/sky-bolt/) 2016 年 9 月 3 日

Works well and the code behind it is simple. I would like to contribute to this 
plugin. Please contact me about how I can get you my update that adds AMP pages.

![](https://secure.gravatar.com/avatar/f6abc1513c30b4fb72acd2bae9719ca4d5a5a2d76a775c8a7a2bae743d10cfa2?
s=60&d=retro&r=g)

### 󠀁[Very easy to configure and effecive](https://wordpress.org/support/topic/very-easy-to-configure-and-effecive/)󠁿

 [SmartestReviews](https://profiles.wordpress.org/matthiaslehr/) 2017 年 2 月 8 
日

Thank you very much. I use it on my site SmartestReviews.com and it really helps
me to define priorities and crawling frequency. Great plugin. Can also run with 
yoast seo. the advantage is that you can define your own priorities and frequency.
with yoast sitemap generator you can’t.

 [ 閱讀全部 14 則使用者評論 ](https://wordpress.org/support/plugin/xml-sitemaps/reviews/)

## 參與者及開發者

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

參與者

 *   [ Denis de Bernardy ](https://profiles.wordpress.org/denis-de-bernardy/)
 *   [ Mike Koepke ](https://profiles.wordpress.org/mike_koepke/)

[將〈XML Sitemaps〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/xml-sitemaps)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/xml-sitemaps/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/xml-sitemaps/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/xml-sitemaps/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/xml-sitemaps/)。

## 變更記錄

#### 3.0.1

 * PHP 7.x compat

#### 3.0

 * Custom Posts now included in the sitemap w/ Setting to exclude
 * Individual posts can be excluded now. Previously only pages could be
 * Update urls for Google and Bing sitemap pinging
 * WP 4.7.x compat

#### 2.5

 * Removed extra blank lines in stylesheet file that was causing issues on a few
   sites.
 * WP 4.3 compat
 * Tested against PHP 5.6

#### 2.4

 * Fixed settings being reset upon plugin activation message.
 * WordPress 4.2 compat.

#### 2.3.1

 * Settings were not being preserved in some cases. Should be resolved now.

#### 2.3

 * New option to include author page in sitemap if they haven’t published a page
   or post.
 * WordPress 4.1 compat.

#### 2.2.1

 * Fix PHP strict warning upon deactivating the plugin.

#### 2.2

 * The blog page is not added if the page is set in the Excluded Pages list and 
   the blog page is not the Home Page.
 * Multi-paged entries are no longer included in the sitemap. This can be re-enabled
   if define(‘xml_sitemaps_paged’, true); is set in wp-config

#### 2.1

 * Changing of the plugin Settings now will cause regeneration of the sitemap
 * Fix ‘Strict Standards: Non-static method’ warning messages when in debug mode
 * WordPress 4.0 compatibility

#### 2.0.3

 * Use more full proof WP version check to alter plugin behavior instead of relying
   on $wp_version constant.

#### 2.0.2

 * Reactivate sitemap logic upon WP upgrade

#### 2.0.1

 * Fix localization

#### 2.0

 * NEW Admin Settings
 * Optionally include/exclude archive, author, category and tag pages from the sitemap
 * Option to exclude individual pages
 * Ability to generate sitemap for mobile-only sites in mobile sitemap format.
 * WP 3.9 Compat

#### 1.12

 * Too many author pages entries were being generated
 * Code refactoring

#### 1.11.1

 * Replaced deprecated PHP 5.3 function call
 * WP 3.8 compat

#### 1.11

 * Fix incorrect admin message regarding Privacy/Search Engine Visibility Settings
   changed in WP 3.5

#### 1.10

 * No longer add url to blog page if no posts have been published
 * Author links now check that author has at least 1 post or page
 * WP 3.7 compat

#### 1.9

 * WP 3.6 compat
 * PHP 5.4 compat

#### 1.8.1

 * Fix assigning the return value of new by reference warning message

#### 1.8

 * Sitemap now includes author pages in file

#### 1.7.1

 * Rebuild sitemap if post is moved to trash

#### 1.7

 * WP 3.5 compat
 * Updated for Bing ping url and removed yahoo ping as it has been discontinued

#### 1.6.2

 * WP 3.0 compat

#### 1.6.1

 * Improve safe_mode and open_basedir handling

#### 1.6

 * WPMU compat
 * Improve memcached support
 * Handle custom content dir properly
 * Add a filter so other plugins can attach pages

#### 1.5

 * Fix an ugly typo that prevented the plugin from working in some circumstances

#### 1.4.1

 * Harden a file permission check

#### 1.4

 * Improve clean-up procedure
 * Fix Paging
 * Ping throttling tweaks: up to once every 10 minutes

#### 1.3

 * Apply permalink filters on post and page links
 * Fix a conflict with themes and plugins that mess around with a blog’s privacy
   settings on 404 errors

#### 1.2

 * Drop attachments from the sitemap

## 中繼資料

 *  版本 **3.0.1**
 *  最後更新 **9 年前**
 *  啟用安裝數 **2,000+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.7.35**
 *  語言
 * [English (US)](https://wordpress.org/plugins/xml-sitemaps/)
 * 標籤:
 * [google](https://tw.wordpress.org/plugins/tags/google/)[google sitemap](https://tw.wordpress.org/plugins/tags/google-sitemap/)
   [sitemaps](https://tw.wordpress.org/plugins/tags/sitemaps/)[xml sitemap](https://tw.wordpress.org/plugins/tags/xml-sitemap/)
   [xml sitemaps](https://tw.wordpress.org/plugins/tags/xml-sitemaps/)
 *  [進階檢視](https://tw.wordpress.org/plugins/xml-sitemaps/advanced/)

## 評分

 4.5 星，滿分為 5 星

 *  [  11 個 5 星使用者評論     ](https://wordpress.org/support/plugin/xml-sitemaps/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/xml-sitemaps/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/xml-sitemaps/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/xml-sitemaps/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/xml-sitemaps/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/xml-sitemaps/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/xml-sitemaps/reviews/)

## 參與者

 *   [ Denis de Bernardy ](https://profiles.wordpress.org/denis-de-bernardy/)
 *   [ Mike Koepke ](https://profiles.wordpress.org/mike_koepke/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/xml-sitemaps/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.semiologic.com/donate/)