Title: XML Sitemap &amp; Google News
Author: Rolf Allard van Hagen
Published: <strong>2009 年 9 月 26 日</strong>
Last modified: 2026 年 6 月 5 日

---

搜索插件

![](https://ps.w.org/xml-sitemap-feed/assets/banner-772x250.jpg?rev=1112143)

![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)

# XML Sitemap & Google News

 作者：[Rolf Allard van Hagen](https://profiles.wordpress.org/ravanh/)

[下载](https://downloads.wordpress.org/plugin/xml-sitemap-feed.5.7.6.zip)

[实时预览](https://cn.wordpress.org/plugins/xml-sitemap-feed/?preview=1)

 * [详情](https://cn.wordpress.org/plugins/xml-sitemap-feed/#description)
 * [评价](https://cn.wordpress.org/plugins/xml-sitemap-feed/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/xml-sitemap-feed/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/xml-sitemap-feed/#developers)

 [支持](https://wordpress.org/support/plugin/xml-sitemap-feed/)

## 描述

Take control of your WordPress core **XML Sitemap** and add a **Google News Sitemap**.
Compatible with WordPress **Multisite**, **Polylang** and **WPML** and most caching
plugins. There are no static files created.

NEW: Connect your site to your **Google Search Console** and **Bing Webmaster Tools**
to keep an eye on sitemap performance and possible errors.
 NEW: **Submit your sitemaps**
right from the WordPress admin. Yes, you read that correctly: Sitemap Pings are 
back!

#### 功能

 * Control the WordPress core XML Sitemaps.
 * Add a Google News Sitemap.
 * Connect your site to Google Search Console and Bing Webmaster Tools to keep an
   eye on sitemap performance and possible errors.
 * Submit/ping sitemaps to Google Search Console and Bing Webmaster Tools for fast
   reindexation.
 * Add custom robots.txt rules.

**XML 站点地图**

 * Option to disable the main XML Sitemap Index.
 * Select sitemaps to include in the sitemap index: post types, taxonomies, authors
   and google news.
 * Select which (custom) post types, taxonomy archives and users to include in respective
   sitemaps.
 * Exclude specific posts, pages and custom post type posts from sitemaps.
 * Add a custom sitemap with external URLs.
 * Add external sitemaps.
 * Choose the sitemap server/generator: WordPress core or Plugin.
 * Plugin server: Include featured images or attached images with title.
 * Choose to update Last modification date only on post modification (default) or
   also on comments.
 * Sitemap stylesheet templates can be overridden by theme template files.

**谷歌新闻网站地图**

 * Optionally activate the Google News Sitemap.
 * Includes the required news sitemap tags: Publication name, language, title and
   publication date.
 * Set a News Publication Name (site name by default).
 * Supports custom post types.
 * Limit inclusion of certain post categories.
 * Google News Sitemap stylesheet template can be overridden by theme template files.

#### Pro Extensions

**[XML Sitemap Advanced](https://premium.status301.com/downloads/xml-sitemap-advanced/)**

 * Sitemap notifier: Automatic XML Sitemap Index update notification to Google and
   Bing.
 * Sitemap notifier log
 * Set a custom sitemap URL (slug)
 * Exclude posts and pages in the Bulk Editor.
 * Optionally include empty taxonomy term and empty author archives
 * Yoast SEO and Rank Math compatibility: exclude posts set to noindex

**[Google News Advanced](https://premium.status301.com/downloads/google-news-advanced/)**

 * Sitemap norifier: Automatic Google News Sitemap update notification to Google.
 * Sitemap notifier log
 * Multiple post types – Include more than one post type in the same News Sitemap.
 * Keywords – Add the keywords tag to your News Sitemap. Keywords can be created
   from Tags, Categories or a dedicated Keywords taxonomy.
 * Stock tickers – Add stock tickers tag to your News Sitemap. A dedicated Stock
   Tickers taxonomy will be available to manage them.

#### 隐私政策 / GDPR

本插件不会收集任何用户或来访者数据，也不会配置浏览器 Cookies。使用本插件不会在任何
方面对你的网站的隐私政策造成影响。

**会被公开的数据**

An XML Sitemap index, referencing other sitemaps containing your web site’s public
post URLs of selected post types that are already public, along with their last 
modification date and associated image URLs, and any selected public archive URLs.

An author sitemap can be included, which will contain links to author archive pages.
These urls contain author/user slugs, and the author archives can contain author
bio information. If you wish to keep this out of public domain, then deactivate 
the author sitemap and use an SEO plugin to add noindex headers to the respective
archive pages.

Google News 站点地图包含了你的站点的公开与最新（过去 48 小时内）的指定新文章类型
的内容，还包括它们的时间戳与相关图片的链接。

**会被传输的数据**

when a connection between your site and Google Search Console is configured in this
plugin, the sitemap index and google news sitemap can be submitted to Google. No
data is transmitted to any third party.

#### 如何贡献

If you’re happy with this plugin as it is, please consider writing a quick [rating](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/#new-post)
or helping other users out on the [support forum](https://wordpress.org/support/plugin/xml-sitemap-feed).

如果您有意与我们一同完善本插件，欢迎您帮助我们将插件[翻译成您的语言](https://translate.wordpress.org/projects/wp-plugins/xml-sitemap-feed/)，
或是在 [Github](https://github.com/RavanH/xml-sitemap-feed/) 上贡献代码。

#### 致谢

XML Sitemap Feed（现 XML Sitemap & Google News）插件最初基于由 Patrick Chia 编写
的 Standard XML Sitemap Generator 插件进行开发。自那时以来，本插件已历经完全重构
并在多个方面有所扩展。

**注意：**

 1. If you _do not use fancy URL’s_ or you have WordPress site running in a _subdirectory_,
    a dynamic **robots.txt will NOT be generated**.
 2. On large sites, it is advised to use a good caching plugin to improve your site
    _and_ sitemap performance.

## 屏幕截图

[⌊XML 站点地图订阅源在普通浏览器中查看。只有你能看见。;)⌉⌊XML 站点地图订阅源在普通
浏览器中查看。只有你能看见。;)⌉[

XML 站点地图订阅源在普通浏览器中查看。只有你能看见。;)

[⌊搜索引擎所看到的 XML 站点地图源代码。⌉⌊搜索引擎所看到的 XML 站点地图源代码。⌉[

搜索引擎所看到的 XML 站点地图源代码。

## 安装

#### WordPress

**一、**如果在此之前你正在使用其他 XML 站点地图插件，请检查你的网站根目录并移除所有
已存在的 sitemap.xml, sitemap-news.xml 以及 Robots.txt（如果其不是由你手工创建并
维护的）文件。

**二、**通过以下方式安装插件：

通过 **[Covered Web Services](http://coveredwebservices.com/wp-plugin-install/?plugin=xml-sitemap-feed)**
来进行快速安装！

… 或者 …

在**插件安装插件**管理页面中搜索“xml sitemap feed”或“XML 站点地图”并安装。

… 或者 …

依照如下步骤：

 1. 下载档案
 2. 将 Zip 文件通过“插件安装插件上传页面”上传或者直接解压并通过你最喜欢的 FTP 客户端
    上传到 /plugins/ 文件夹。

**三、**在插件页面中激活插件。

搞定！现在你可以通过浏览器或任何在线 XML 站点地图验证器访问 yourblog.tld/sitemap.
xml 来检查你的闪闪发亮的全新 XML 站点地图。你可能同时也想要检查你的站点地图是否已
收录于你的 yourblogurl.tld/robots.txt文件中，别忘了。

#### WordPress 3+ 多站点模式

步骤同上，为你的多站点网络中的每一个网站进行**网络激活**以确保 XML 站点地图能够对
每一个网站启用。

如果本插件与 [WordPress MU Sitewide Tags Pages](https://wordpress.org/plugins/wordpress-mu-sitewide-tags/)
同时安装，XML 站点地图将**不会**对任何**标签博客（Tag Blogs）**创建 sitemap.xml 
文件同样也不会对 Robots.txt 文件做任何修改。这是故意如此，因为这可能导致标签博客
在自己的域名之外被大量站外链接所填满，这将导致网站被 Google 处以忽略（Ignored）（
甚至更糟：惩罚（Penalised））的措施。

#### 卸载

Upon uninstalling the plugin from the Admin > Plugins page, plugin options and meta
data will be cleared from the database. See notes in the uninstall.php file.

On multisite, the uninstall.php loops through all sites in the network to perform
the uninstallation process for each site. However, on large networks it _only_ does
this when `define('XMLSF_MULTISITE_UNINSTALL', true);` is explicitly set in wp-config.
php.

## 常见问题

Please read more on [FAQ’s and Troubleshooting](https://premium.status301.com/knowledge-base/xml-sitemap-google-news/faqs-and-troubleshooting/)

## 评价

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

### 󠀁[Best Sitemap Plugin](https://wordpress.org/support/topic/best-sitemap-plugin-11/)󠁿

 [Alex Oreshkin](https://profiles.wordpress.org/oreshkin/) 2026 年 4 月 29 日 1 
回复

This is probably the best sitemap plugin available.

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

### 󠀁[perfect plugin with great support!](https://wordpress.org/support/topic/doesnt-work-3268/)󠁿

 [momocamel](https://profiles.wordpress.org/momocamel/) 2026 年 1 月 27 日 8 回复

Didn’t work at first, the support offered to help and reinstalled it and it works.
it has automatically submit to Google and Bing, that’s awesome feature. works perfectly
now I guess.

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

### 󠀁[Finally!](https://wordpress.org/support/topic/finally-350/)󠁿

 [kenfortune](https://profiles.wordpress.org/kenfortune/) 2025 年 10 月 11 日 1 
回复

Finally! A sitemap plugin that allows me to edit my sitemap with ease. This is the
6th sitemap plugin I’ve tried and my favourite by far. Very easy to exclude certain
pages, posts, tags or categories from my sitemap.

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

### 󠀁[Google Error, # Auffindbarkeit Sitemaps Vorübergehender Verarbeitungsfehler](https://wordpress.org/support/topic/google-error-auffindbarkeit-sitemaps-vorubergehender-verarbeitungsfehler-2/)󠁿

 [kolniu](https://profiles.wordpress.org/kolniu/) 2024 年 11 月 5 日 1 回复

Google Error, # vorübergehender Fehler bei der Verarbeitung Ihrer Sitemap.Dieser
Fehler tritt leider erst seid kurzem auf.Meine Website wurde seid dem nicht mehr
von Google crawling aktualisiert. Verwendung:Webiste | Wordpress (vers. 6.6.2) Verwendung:
Plugin | XML Sitemap & Google News (vers. 5.4.9)◉my Optionen: Enable XML sitemaps
|> XML Sitemap Index |> Server: (“Plugin”) Verwendung (Google Search Console)(1)
Eingereichte Sitemaps:|> zuletzt gelesen, vor 3 Wochen (??)(2) Seitenindexierung:
Seite ist indexiert (??)jedoch unter der Auffindbarkeit heißt es:|> Sitemaps: Keine
verweisenden Sitemaps gefunden|> Sitemaps: Vorübergehender Verarbeitungsfehler my
Sitemap:https://www.hausmeister-service-keuneke.de/sitemap.xml

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

### 󠀁[Worth sticking with](https://wordpress.org/support/topic/doesnt-do-google-news/)󠁿

 [ncaross](https://profiles.wordpress.org/ncaross/) 2024 年 9 月 6 日 3 回复

I initially asked why it didn’t actually do Google News, but the prompt reply below
shows that activating this feature was in a different place.

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

### 󠀁[Really works with custom post types](https://wordpress.org/support/topic/really-works-with-custom-post-types/)󠁿

 [Krzysztof Busłowicz](https://profiles.wordpress.org/elkurczako/) 2024 年 2 月 
17 日

I’ve been trying several plugins to generate a proper sitemap on our site. This 
one has a simple yet effective setup and really works like a charm with my CPT’s.

 [ 阅读所有84条评价 ](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

## 贡献者及开发者

「XML Sitemap & Google News」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Rolf Allard van Hagen ](https://profiles.wordpress.org/ravanh/)

「XML Sitemap & Google News」插件已被翻译至 7 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/xml-sitemap-feed/contributors)
为本插件所做的贡献。

[帮助将「XML Sitemap & Google News」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/xml-sitemap-feed)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/xml-sitemap-feed/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/xml-sitemap-feed/)，或通过[RSS](https://plugins.trac.wordpress.org/log/xml-sitemap-feed/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/xml-sitemap-feed/)。

## 更新日志

#### 5.7.6

Date: 20260605
 * Fix: invalid callback on news settings page

#### 5.7.5

Date: 20260519
 * Fix: Bing report only returns sitemap number * Fix: Split by year
no longer default after swichting server * Drop additional no-store for news sitemap
nocache headers

#### 5.7.4

Date: 20260430
 * Fix LPAD months, thanks @midwestdev * Fix settings fields: news
notifier and stock tickers * Admin button styles

#### 5.7.2

Date: 20260129
 * Fix Google Connect instructions text * Fix transients upgrade 
routine

#### 5.7

Date: 20260121
 * Bing Webmaster Tools sitemap reports * Bing sitemap submission
from admin * Priority tags dropped

#### 5.6.3

Date: 20251201
 * Improved GSC connection instructions * Code and text strings cleanup*
FIX: split by week DB query * FIX: XML Sitemap Advanced compatibility

#### 5.6

Date: 20251126
 * Google Search Console sitemap reports * Sitemap submission from
admin * Knowledge base link in admin help sections

#### 5.5.9

Date: 20251118
 * Prepare advanced sitemap notification feature.

#### 5.5.8

Date: 20251014
 * Drop unused news tags & stylesheet columns * FIX: failing sanitize
callbacks * FIX: Squirrly SEO incompatibility warnings

#### 5.5.7

Date: 20250915
 * FIX: WPML Compatibility missing valid callback, thanks @linusbenknerkk

#### 5.5.6

Date: 20250717
 * FIX: Possible excessively long URL on admin post search, thanks
@leedxw * FIX: Notice dismiss failing

#### 5.5.5

Date: 20250625
 * Polylang index lastmods per language in core sitemap * Resturcture
admin notices * FIX: SEOPress notices * FIX: core sitemap index lastmods (post order)*
FIX: Polylang Pro compatibility, thanks @followalter

#### 5.5.4

Date: 20250427
 * Improved WPML compatibility * Load core sitemaps early to prevent
unnecessary queries * FIX: dynamic property deprecated notices * FIX: unregister
GN sitemap rewite rules on deactivation

#### 5.5.3

Date: 20250402
 * FIX: missing exclude/priority meta box * FIX: error blocking deactivation*
FIX: non-numeric value encountered in automatic priority calculations, thanks @i0n1ca*
FIX: undefined function on Clear settings

#### 5.5

Date: 20250331
 * Exclude option in Quick Editor * Filter xmlsf_taxonomies_query_args*
Filter xmlsf_news_hours_old * custom urls sitemap for core server * external sitemaps
for core server * Namespacing & autoloading * Admin notices for Slim SEO, Squirrly
SEO, Jetpack Sitemaps & XML Sitemaps Manager * FIX: Polylang news sitemap category
selection * FIX: Polylang user archive translations on Plugin sitemap * FIX: Attempt
to read property post_type on null * FIX: Possible empty taxonomy sitemaps in index*
FIX: Missing textdomain, thanks @itapress * FIX: Blog page lastmod date format *
FIX: Noindex robots meta header for core sitemap, thanks @ukheather * FIX: possible
empty static front page lastmod * FIX: Max posts per sitemap not saving

#### 5.4.9

Date: 20240506
 * FIX: Unauthenticated file inclusion – CVE-2024-4441 reported by
Foxyyy

#### 5.4.8

Date: 20240329
 * post types max number * FIX: blog_public can be integer when object
cache is used * FIX: compatibility date redirect warning when using core server *
FIX: rewrite rules conflict with Polylang * FIX: call to undefined function with
Nginx Helper

#### 5.4.5

Date: 20240221
 * FIX: wp-cli disable plugin incompatibility * FIX: trailing slash*
FIX: split by month * FIX: disabled post types in index * ClassicPress and WP pre-
5.5 compatibility * FIX: Undefined contact on uninstall * FIX: admin compatibility
message

#### 5.4

Date: 20240219
 * Switch between Plugin or WP core sitemap server for sitemap generation*
xmlsf_generator action hook * xmlsf_sitemap_index_pre and xmlsf_sitemap_index_post
action hooks * xmlsf_author_has_published_posts filter * Dropping all Ping Services(
no longer supported) * Dropping allowed domains filtering * Exclude spammed or deleted
authors on multisite * Updated help links * Update coding standards * FIX: Don’t
use transients if not strictly needed * FIX: “Failed opening required” when no template*
FIX: Conversion of false to array deprecated warning

#### 5.3.6

Date: 20230810
 * FIX: Work around get_users() fatal error in WP 6.3 * FIX: Wrong
Nginx helper purge urls (backport from 5.4-beta)

#### 5.3.5

Date: 20230629
 * FIX: Forced Status 200 response conflict with Etag/If-None-Match
headers, thanks @revolutionnaire

#### 5.3.4

Date: 20230530
 * FIX: File not found error on invalid sitemap requests * FIX: Lastmod
date older than post date on scheduled posts

#### 5.3.3

Date: 20230528
 * FIX: Undefined variable + Invalid argument supplied for foreach(),
thanks @yankyaw09

#### 5.3.2

 * FIX: Bing ping 410 error response
 * FIX: Outdated help & forum links

#### 5.3.1

 * FIX: Restore wp-sitemap.xml rewrite rules after deactivation
 * FIX: Call to undefined function xmlsf_get_archives()
 * Use nocache_headers()

#### 5.3

 * Author sitemap
 * allow custom theme templates and stylesheets
 * request filters `xmlsf_request` and `xmlsf_news_request`
 * news template filters `xmlsf_news_publication_name` and `xmlsf_news_title`
 * sitemap template action hook `xmlsf_url`
 * sitemap template action hooks `xmlsf_news_url` and `xmlsf_news_tags_inner`
 * `xmlsf_index_url_args` filter
 * All in One SEO Pack incompatibility message and instructions
 * The SEO Framework incompatibility message and instructions
 * Moved news template action hook `xmlsf_news_tags_after` to after closing tag
 * Less DB queries, smaller memory footprint
 * Better debug info with SAVEQUERIES
 * Disable WP core sitemaps and redirect index
 * FIX: conflicting static file deletion
 * FIX: invalid form control not focusable when meta box is hidden
 * FIX: force Status 200 response
 * FIX: priority calculation last modified for post type
 * FIX: news sitemap redirection with Polylang
 * FIX: Cache-Control header no-cache

#### 5.2.7

Date: 20191111
 * Ad Inserter compatibility check * xmlsf_urlset and xmlsf_news_urlset
action hooks, thanks to Stanislav Khromov (@khromov) * Exclude hierarchical post
types from news sitemap

#### 5.2.6

Date: 20191009
 * xmlsf_tags_after, xmlsf_url_after and xmlsf_news_url_after action
hooks * Make stylesheet paths relative to prevent exclusion when using different
language domains * FIX: Taxonomy selection not available to new installs

#### 5.2.4

Date: 20190917
 * NEW Rank Math incompatibility admin warnings * FIX undefined index*
FIX invalid form control

#### 5.2.3

 * FIX Cannot use return value in write context
 * FIX issue #30 for sql_mode=ONLY_FULL_GROUP_BY, thanks @silvios
 * FIX invalid form control not focusable when meta box is hidden

#### 5.2.2

 * FIX invalid date format on some PHP versions
 * FIX Can’t use function return value in write context
 * FIX non-cyrillic URLs stripped from External Web Pages field
 * FIX Call to undefined function xmlsf_cache_get_archives()

#### 5.2

Date: 20190429
 * Image query optimization and meta caching * Last comment date 
meta caching * Lastmod and publication dates in local time * Removed ignored image
tag from news sitemap * Max memory limit for post type and taxonomy term sitemaps*
Prevent CDN file urls * Zlib before GZhandler on .gz request * FIX: don’t ping for
excluded posts * FIX: traditional and simplified Chinese with WPML * FIX: redundant
front page url * FIX: array_filter() expects parameter 1 to be array * FIX: possible
division by zero * FIX: update_term_modified_meta * FIX: rewrite rules on deactivate/
uninstall

#### 5.1.2

 * FIX: admin notice dismiss button failing
 * FIX: date archive redirect notice showing for inactive post types
 * Plugin support and rate links on plugins page

#### 5.1.1

 * FIX options page not found
 * FIX news sitemap only ping

#### 5.1

Date: 20190313
 * SEOPress and Catch Box incompatibility admin messages * FIX bbPress
incompatibility * FIX failing last modified date for taxonomy sitemaps * FIX sitemap
showing when only private posts * FIX possible sitemaps for no longer existing post
types in index * Admin interface improvements: highlighting and scroll * Upgrade
routines in own class only to be included when needed * Moved metabox methods to
dedicated classes * NEW Respond to .gz requests (with ob_gzhandler output buffering
if needed) * NEW filters xmlsf_disabled_taxonomies, xmlsf_news_keywords, xmlsf_news_stock_tickers*
NEW action xmlsf_ping * NEW Tools: Ping search engines and Flush rewrite rules

#### 5.0.7

Date: 20181025
 * Allowed domains back to Settings > Reading * FIX static files 
check on activation * NEW Admin warning on conflicting plugin settings * FIX Empty
post priority saved as 0.0 * FIX Call to undefined function xmlsf_get_archives()*
FIX force LC_NUMERIC locale to C * FIX Call to private method * FIX Custom post 
types with a hyphen not showing * FIX Admin static files message fatal error, thanks
@kitchin * FIX Improper if statement in upgrade routine, thanks @kitchin * FIX PHP
5.4 compatibility issues

#### 5.0

Date: 20180908
 * Complete code restructure and cleanup: MVC and JIT inclusion *
Fewer DB queries, much smaller memory footprint on normal queries * NEW Admin interface
with dedicated options pages and help tabs * NEW Taxonomy term options: priority
and automatic calculation * NEW Admin warning on conflicting static files * NEW 
Option to delete conflicting static files * NEW Filters for post types: xmlsf_post_types
and xmlsf_news_post_types * NEW Filters for priority values: xmlsf_post_priority
and xmlsf_term_priority * Removal of Genre, Keywords and Access tags as Google dropped
support * Taxonomy term sitemaps speed improvement: get lastmod date from database*
Exclude Woocommerce product_shipping_class taxonomy * PHP 7.2+ compat: create_function
deprecated * No more domain filtering for custom URLs and external sitemaps * FIX
Gutenberg editor GN genre taxonomy not showing * FIX Plain and /index.php/ permalink
structure * FIX Clear all options on uninstall * FIX Pings

#### 4.9.4

 * 修复：特色图像丢失情况，感谢 @flyerua
 * 修复：Header 过滤器中出现的重复内容类型响应

#### 4.9.3

 * 恢复 filter_no_news_limits，允许按照文章类型排列
 * 改进语言处理，增加新的语言过滤器 xmlsf_post_language
 * 强制使用 text/xml 内容类型响应头

#### 4.9.2

 * FaceCheck 类型在搜索控制台内会引发错误

#### 4.9.1

 * FIX: double genre terms on upgrade from 4.4, thanks @mouhalves
 * FIX: wp_count_posts uncached and too heavy on large sites, thanks @carlalexander
 * Last-modified response header now linked to Update on comments setting
 * FIX: plugin_basename propagation

#### 4.9

Date: 20180507
 * Code cleanup * FactCheck genre * Changefreq tag dropped * translation
strings for genres * FIX: zlib.output_compression compatibility, thanks @alicewondermiscreations*
FIX: permalink issue with Woocommerce account page endpoints * FIX: undefined index
in news post types

#### 4.8.3

 * fix get_lastpostdate array/string
 * restore pre PHP 5.4 compatibility (popular request)

#### 4.8

Date: 20180316
 * Conditional functions is_sitemap() and is_news() * code cleanup
and annotation * new google ping URL * revisit get first/last date/modified functions
and cache key set/delete * FIX: cache key missing timezone * FIX: wp_rewrite init
before flush_rules

#### 4.7.6

 * FIX Open_BaseDir issue on IIS server

#### 4.7.5

Date: 20161207
 * FIX: On cache_flush purge also the respective time_key cache entry,
props @e2robert https://wordpress.org/support/topic/object-cache-issue-results-in-
outdated-last-modified-values-on-index-sitemap/ * FIX: Variable variable php 7 compat*
Detect if headers are already sent and print warning in source

#### 4.7.4

 * Another WPML compat issue fixed, special thanks to hermes3por3

#### 4.7.3

 * xmlsf_excluded filter
 * IMPROVEMENT: Polylang and WPML compatibility issues
 * FIX: “Only variables should be passed by reference” strict warning
 * FIX: PHP 5.3 compatibility

#### 4.7

Date: 20160506
 * WPML compatibility * FIX: News Sitemap chinese language tag * 
FIX: flush rules on plugin re-activation

#### 4.6.3

 * filter xmlsf_custom_sitemaps
 * BUGFIX: empty custom urls sitemap

#### 4.6.2

 * filter xmlsf_custom_urls
 * More cleanup
 * BUGFIX: broken Polylang compatibility reported by @zesseb

#### 4.6.1

Date: 20160407
 * Code cleanup * POT file update * Dutch translation update

#### 4.6

 * xmlsf_news_tags_after action hook
 * Attempt to remove static sitemap files left over by other sitemap plugins

#### 4.5.1

 * fix Persistent/Stored XSS vulnerability on admin page, thanks to Sneha Rajguru
   @Sneharajguru

#### 4.5

 * Set Google News access tag per post
 * Exclude posts from Google News sitemap
 * News Sitemap stylesheet text/links update
 * 修复：按照Jeremy Clarke的建议，cache_delete缓存键而不是cache_flush https://wordpress.
   org/support/topic/please-stop-running-wp_cache_flush-whenever-posts-are-edited
 * Nginx Helper compatibility to purge cache sitemap URLs from FastCGI Cache or 
   Redis

#### 4.4.1

 * BUGFIX contribution by alejandra.aranibar: multiple news post types makes get_lastdate
   return oldest instead of newest date
 * BUGFIX plugins_url filter not working, reported by Michael
 * Dropped GN Geolocation tag support
 * Dropped XMLSF_POST_TYPE and XMLSF_NEWS_POST_TYPE defines support
 * Multiple default genres

#### 4.4

 * Pings max once per hour (5 minutes for news sitemap)
 * Seperate ping for Google News Sitemap
 * Append custom/static sitemaps to the index
 * Include other post types in News Sitemap
 * Optionally limit posts to certain categories in News Sitemap
 * Noindex response header for sitemaps to keep them out of search results
 * Static sitemap stylesheets
 * Controversial default robots.txt rules removed
 * DB query streamlining
 * BUGFIX: fatal error on . (dot) as category base in permalinks
 * BIGFIX: PHP Strict notices
 * Force object cache flush on post publication

#### 4.3.2

 * Italian translation
 * BUGFIX: html esc / filter image title and caption tags
 * BUGFIX: empty terms counted causing empty taxonomy sitemap appearing in index
 * BUGFIX: custom taxonomies where lastmod cannot be determined show empty lastmod
   tag

#### 4.3

 * Google News sitemap settings section
 * Google News tags: access, genres, keywords, geo_locations
 * Improved Google News stylesheet
 * Custom Google News Publication Name
 * Image tags in Google News sitemap
 * Custom URLs
 * Allow additional domains
 * Image caption and title tags
 * Ping Yandex and Baidu optional
 * BUGFIX: Ineffective robots.txt rules
 * BUGFIX: Priority value 0 in post meta not saved
 * BUGFIX: Ping for all post types
 * BUGFIX: Custom taxonomy support
 * BUGFIX: Split by month shows year

#### 4.2.4

 * Image tags
 * Rearranged settings section
 * FIX: replace permalink, title and bloginfo rss filter hooks with own

#### 4.2.3

 * BUGFIX: Empty ping options after disabling the main sitemap
 * BUGFIX: Empty language tag for Google News tags in posts sitemap
 * Small back end changes
 * Custom post types split by year/month

#### 4.2

 * Image & News tags
 * Exclude pages/posts

#### 4.1.4

 * BUGFIX: Pass by reference fatal error in PHP 5.4
 * BUGFIX: issue with Polylang language code in pretty permalinks setting
 * BUGFIX: unselected post types in sitemap
 * BUGFIX: 1+ Priority for sticky posts with comments
 * Dutch and French translations updated

#### 4.1

 * Ping Google and Bing on new publications
 * Set priority per post
 * Priority calculation options
 * Option to split posts by year or month for faster generation of each sitemap
 * Reduced queries to increase performance
 * Improved Lastmod and Changefreq calculations
 * Core class improvements
 * Dropped qTranslate support
 * Dropped PHP4 support
 * BUGFIX: removed several PHP notices

#### 4.0.1

 * Dutch and French translations
 * BUGFIX: Non public sites still have sitemap by default
 * BUGFIX: Invalid argument supplied for foreach() when all post types are off
 * BUGFIX: Wrong translation dir

#### 4.0.0

 * Moved to sitemap index and seperated post/page sitemaps
 * options to dswitch off sitemap and news sitemap
 * select which post types to include
 * select which taxonomies to include
 * set additional robots.txt rules
 * Translation POT catalogue
 * Improved Polylang support
 * Dropped xLanguage support
 * qTranslate currently untested

#### 3.9.2

 * Basic Google News feed stylesheet
 * improvement on XSS vulnerability fix
 * Fixed trailing slash

#### 3.9.1

 * SECURITY: XSS vulnerability in sitemap.xsl.php

#### 3.9

 * Google News Sitemap
 * Memory limit error workaround (for most sites)

#### 3.8.8

 * BUGFIX: PHP4 compatibility
 * BUGFIX: stylesheet URL when installed in mu-plugins
 * core change to class
 * minified sitemap output by default

#### 3.8.5

 * **xLanguage support** based on code and testing by **Daniele Pelagatti**
 * new FILTER HOOK `robotstxt_sitemap_url` for any translate and url changing plugins.
 * BUGFIX: Decimal separator cannot be a comma!

#### 3.8.3

 * filter out external URLs inserted by plugins like Page Links To (thanks, Francois)
 * minify sitemap and stylesheet output
 * BUGFIX: qTranslate non-default language home URL

#### 3.8

 * **qTranslate support**
 * no more Sitemap reference in robots.txt on non-public blogs

#### 3.7.4

 * switch from `add_feed` (on init) to the `do_feed_$feed` hook
 * BUGFIX: `is_404()` condition TRUE and Response Header 404 on sites without posts
 * BUGFIX: `is_feed()` condition FALSE after custom query_posts
 * BUGFIX: no lastmod on home url when only pages on a site
 * BUGFIX: stylesheet url wrong when WP installed in a subdir

#### 3.7

 * massive changefreq calculation improvement
 * further priority calulation improvement taking last comment date into account

#### 3.6.1

 * BUGFIX: wrong date calculation on blogs less than 1 year old

#### 3.6

 * massive priority calculation improvement

#### 3.5

 * complete rewrite of plugin internals
 * speed improvements
 * WP 3.0 (normal and MS mode) ready

#### 3.4

 * BUGFIX: use home instead of siteurl for blog url for sitemap reference in robots.
   txt
 * code streamline and cleanup

#### 3.3

 * automatic exclusion of tags blog in wpmu

#### 3.2

 * rewrite and add_feed calls improvements
 * BUGFIX: double entry when static page is frontpage

#### 3.0

 * added styling to the xml feed to make it human readable

#### 2.1

 * BUGFIX: lastmod timezone offset displayed wrong (extra space and missing double-
   colon)

#### 2.0

 * priority calculation based on comments and age
 * changefreq based on comments

#### 1.0

 * changed feed template location to avoid the need to relocate files outside the
   plugins folder
 * BUGFIX: `get_post_modified_time` instead of `get_post_time`

#### 0.1

 * rework from Patrick Chia’s [Standard XML Sitemaps](https://wordpress.org/plugins/standard-xml-sitemap/)
 * increased post urls limit from 100 to 1000 (of max. 50,000 allowed by the Sitemap
   protocol)

## 商业插件

该插件免费，但提供额外的付费商业升级或支持服务。 [查看帮助](https://premium.status301.com/support/)

## 额外信息

 *  版本 **5.7.6**
 *  最后更新：**3 天前**
 *  活跃安装数量 **100,000+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Chinese (China)](https://cn.wordpress.org/plugins/xml-sitemap-feed/) 、 [Dutch](https://nl.wordpress.org/plugins/xml-sitemap-feed/)、
   [English (US)](https://wordpress.org/plugins/xml-sitemap-feed/) 、 [French (France)](https://fr.wordpress.org/plugins/xml-sitemap-feed/)、
   [Japanese](https://ja.wordpress.org/plugins/xml-sitemap-feed/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/xml-sitemap-feed/)、
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/xml-sitemap-feed/) 和 
   [Vietnamese](https://vi.wordpress.org/plugins/xml-sitemap-feed/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/xml-sitemap-feed)
 * 标签
 * [google news](https://cn.wordpress.org/plugins/tags/google-news/)[news](https://cn.wordpress.org/plugins/tags/news/)
   [robots](https://cn.wordpress.org/plugins/tags/robots/)[sitemap](https://cn.wordpress.org/plugins/tags/sitemap/)
   [xml](https://cn.wordpress.org/plugins/tags/xml/)
 *  [高级视图](https://cn.wordpress.org/plugins/xml-sitemap-feed/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  68 条 5 星评价     ](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/?filter=5)
 *  [  4 条 4 星评价     ](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/?filter=4)
 *  [  2 条 3 星评价     ](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/?filter=2)
 *  [  10 条 1 星评价     ](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

## 贡献者

 *   [ Rolf Allard van Hagen ](https://profiles.wordpress.org/ravanh/)

## 支持

最近两个月解决的问题：

     总计 4，已解决 2

 [查看支持论坛](https://wordpress.org/support/plugin/xml-sitemap-feed/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/donate/?hosted_button_id=5UVXZVN5HDKBS)