XML Sitemap Generator for Google
Generate multiple types of sitemaps to improve SEO and get your website indexed quickly.
Install in
Generate XML and HTML sitemaps for your website with ease using the XML Sitemap Generator for Google. This plugin enables you to improve your SEO rankings by creating page, image, news, video, HTML, and RSS sitemaps. It also supports custom post types and taxonomies, allowing you to ensure that all of your content is being indexed by search engines. With a user-friendly interface, you can easily configure the plugin to suit your needs and generate sitemaps in just a few clicks. Keep your website up-to-date and make sure that search engines are aware of all of your content by using the XML Sitemap Generator for Google.
The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.
Supported for more than a decade and rated among the best, it will do exactly what it’s supposed to do – providing a complete XML sitemap for search engines!
If you like the plugin, feel free to rate it! 🙂
Related Links:
License
Good news, this plugin is free for everyone! Since it’s released under the GPL, you can use it free of charge on your personal or commercial site.
Translations
The plugin comes with various translations, please refer to the WordPress Codex for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the sitemap.pot file which contains all definitions and may be used with a gettext editor like Poedit (Windows).
Written by Joobi from the project's own listing. See the source page
4.1.25 (2026-09-18)
- Fixed “XML parsing error: XML or text declaration not at the beginning of the entity” on sitemap.xml. If a theme or another plugin printed anything before the sitemap started — a blank line after a closing PHP tag, a UTF-8 BOM, a debug notice — it landed in front of the XML declaration and the whole document failed to parse. That output is now discarded before the sitemap is sent. This works where the stray output is still held in a PHP output buffer, which is the usual case; if your server runs with output_buffering disabled the output has already left for the browser before the plugin can act, and the offending blank line or BOM has to be removed from the file that emits it.
- Fixed the plugin overwriting robots.txt rules added by WordPress and other plugins. The robots.txt filter replaced the whole file body, so WooCommerce’s Disallow lines (wc-logs, woocommerce_uploads, add-to-cart) and any custom rules were silently dropped, and sites with “Discourage search engines” enabled were left with a bare “Disallow: /”. Rules are now additive: existing directives are preserved, and the redundant non-standard “Disallow: /” and “Disallow: /?” lines are gone. With “Discourage search engines” on, the “Disallow: /” is added to every user-agent group in the file rather than only to the “User-agent: *” one — a crawler that your robots.txt names specifically follows its own group and ignores the wildcard, so fencing only the wildcard would have left those crawlers free. If your robots.txt has no “User-agent: *” group at all, one is added, so crawlers your file never mentions are covered too. An “Allow:” covering the whole site is removed from the “User-agent: *” group, and from any other group at the point a block is added to it, because robots.txt resolves an exact-length tie in favour of the more permissive rule and that one line would otherwise cancel the block outright. A group where you have written both “Disallow: /” and “Allow: /” yourself is left alone — that pair is yours, and removing half of it would change what you asked for rather than enforce it. A group naming a specific crawler is left exactly as you wrote it — nothing added, nothing removed — when it grants that crawler the whole site and restricts nothing, so a deliberate exception, written either as “Allow: /” or as the bare “Disallow:” that Google’s own AdSense example uses, still works. A group that carries rules of its own is not an exception and is blocked like any other, so a group some other plugin wrote for Googlebot — “Disallow: /wp-admin/”, say — does not quietly exempt Googlebot from the setting. Path-specific “Allow:” rules, such as the one WordPress adds for admin-ajax.php, are never touched and still take precedence for their own path. Nor is “Allow: /$”, which grants only your homepage rather than the whole site. If you deliberately keep “Allow: /” in your “User-agent: *” group so that crawlers can still fetch pages and see the noindex meta tag WordPress emits — which since WordPress 5.3 is how core itself prefers to keep a site out of results — then this setting is working against you, and the line will be removed while it is on. Turn “Discourage search engines” off, or turn off the option below, if that is your strategy. All of this applies only while “Add sitemap URL to the virtual robots.txt file” is enabled, which is what lets the plugin touch robots.txt at all; with it off the plugin leaves the file alone entirely, as it did before. And robots.txt is a crawl hint, not access control: a staging site that must stay out of search needs HTTP authentication or a noindex header.
- Fixed “Links per sitemap file” refusing any value below 1000. The field advertised a minimum of 1000, and a separate repair that ran on every admin page load reset anything smaller, so a value you saved appeared not to stick. The minimum is now 100, that repair is gone, and the range is enforced in one place when the sitemap is built — so the number shown in settings is the number actually used.
- Fixed a future date appearing as for categories, tags, product terms and custom post type archives. The dates were read from the site-local database columns while WordPress runs PHP in UTC, so on any timezone ahead of UTC every entry was dated hours into the future — and the most recently updated categories looked the furthest ahead. Those dates are now read from the UTC columns. The category query was also picking up scheduled and draft posts when deciding how recently a category changed; it now only considers published ones. Where a date would still be genuinely in the future, that entry’s lastmod is left out rather than replaced with the current time, which would otherwise make the entry report a brand-new modification date on every fetch and teach search engines to ignore the field.
- Fixed the “Join the Beta Program” and “Enable Auto-Updates” banner buttons rendering with unreadable link-coloured, underlined text on WordPress 7.0 and later. Core 7.0 started colouring every link inside an admin notice, and its rule outranked the plugin’s button styles.
- Compatibility: marked as tested with WordPress 7.1.
4.1.24 (2026-05-22)
- Security: mitigated CVE-2026-42945 (NGINX Rift, CVSS 9.2) in the dashboard’s suggested Nginx rewrite rules. The rules now use named PCRE captures (?<slug>…) instead of unnamed $1/$2, which avoids the heap-overflow trigger in ngx_http_rewrite_module. If you previously copied the Nginx rules from Settings → XML-Sitemap into your nginx config, please re-copy the updated block.
- Compatibility: marked as tested with WordPress 7.0.
4.1.23 (2026-02-09)
- Improved security further for unauthenticated users from modifying plugin settings by enforcing proper permission and security‑token checks. CVE-2025-64632
4.1.22 (2025-12-23)
- Fixed preventing unauthenticated users from modifying plugin settings by enforcing proper permission and security‑token checks.
4.1.21 (2024-04-21)
- Fixed a regression with saving post/page exclusions.
- Fixed an issue with post/tag priority settings.
4.1.20 (2024-04-14)
- Fixed empty ping error
- Fixed response code issue with index sitemap
- Fixed interoperability with existing robots.txt file
- Fixed URL for guest authors
- Fixed uninstalled plugin error
- Fixed sitemap indexation
- Fixed “Trying to access array offset on value of type bool…” warning
- Fixed setting of custom taxonomy change frequency and priority
- Fixed missing custom taxonomies issue
- Fixed issue with hierarchical taxonomies
- Fixed missing categories issue
- Fixed sort order of URLs (changed from descending to ascending)
- Improved WooCommerce support (added products sitemap)
- Improved multisite support
- Improved SEO plugin interoperability
- Improved Nginx configuration
- Improved sitemap generation performance for large sites
- Added filter support for behavior/settings customization
- Added latest Microsoft Bing API Key to settings page
4.1.19 (2024-01-31)
- Fixed “Links per page” bug causing sitemaps to not include all posts depending on the setting. Following Search Engine guidance is minimum links per sitemap is 1,000 pages.
- Fixed Google Search Console errors including “Fetch error” and “noindex” header
- Fixed the issue with “null” sitemaps
- Fixed sitemap generation for tags, categories, etc for large sites
- Improved performance by optimizing queries
- Improved IndexNow implementation
- Added WordPress’ sitemap to the list of detected sitemaps for deactivation
4.1.18 (2024-01-12)
- Resolved functionality regressions since v4.1.13
- Improved IndexNow Protocol implementation
- Improved WooCommerce support
- Improved WPML support
- Fixed sitemap 404 issues (for Single and Multisite modes)
- Fixed auto update rewrite rule
- Fixed rewrite issues during plugin upgrade
- Fixed invalid XML syntax (cause of parsing issues in Google Search Console)
4.1.17 (2024-01-05)
- Fixed sitemap URL issue in robots.txt etc
- Improved LastMod syntax for better support for indexation by Google
- Improved Network mode support
- Improved localization plugin support
- Improved custom taxonomy support
- Added IndexNow Protocol support for Microsoft Bing. Deprecated Sitemap Ping Protocol
- Added JetPack sitemap generator conflict detection
4.1.16 (2023-12-18)
- Fixed a syntax error causing fatal errors for some users.
4.1.15 (2023-12-14)
- Improved security by adding capability check via the current_user_can() calls
- Changed the text domain from “sitemap” to “google-sitemap-generator”
4.1.14 (2023-12-05)
- Improved security with authentication and plugin management anchors
- Fixed an error in sitemap file name conventions
- Fixed an issue with disabling conflicting sitemap generators
- Added last modified date to category sitemaps
- Added min and max option for number of posts per sitemap
- Added support for local links in sitemap for different languages
4.1.13 (2023-08-04)
- Fixed warning error displayed when Yoast SEO is not installed/active
4.1.12 (2023-08-02)
- Improved various UI elements and notifications
- Fixed browser console errors
- Fixed null value in set_time_limit
4.1.11 (2023-05-19)
- Fixed version compatibility thresholds
- Improved user interface
4.1.10 (2023-04-24)
- Added support for automatic updates
4.1.9 (2023-04-12)
- Improved beta program notifications and workflow to comply with guidelines
- Improved various UI elements
4.1.8 (2023-03-31)
- Added Beta testing program
- Added check for disabled PHP functions
- Fixed handling of taxonomies containing hyphens
4.1.7 (2022-11-24)
- Fixed custom taxonomy unit generation issue
- Fixed plugin deactivation notice
4.1.6 (2022-11-23)
- Fixed mishandling of empty categories
- Fixed _url undefined notice error
- Fixed error when build_taxonomies throws a fatal error when accessing sub-sitemap without pagination
- Improved handling of line breaks e.g. showing
tag without escaping HTML - Improved handling of the Google TID field optional to ping Google
- Improved documentation, given some renaming of the methods
- Added support for paginated sitemap posts, pages, and product links
- Added conditional statements to prevent rewrite rules from being checked every time the sitemap loads
4.1.5 (2022-06-14)
- Fixed code regressions moving from git to svn (preventing recent fixes from being available)
4.1.4 (2022-06-06)
- Fixed the issue of PHP warnings
- Fixed links per page issue
- Improved WordPress 6.0 compatibility
4.1.3 (2022-05-31)
- Added backward compatibility settings
- Changed Google Tracking ID field to optional
- Fixed PHP warnings
4.1.2 (2022-04-15)
- Fixed security issue related to Cross-Site Scripting attacks on debug page
- Fixed HTTP error while generating sitemap (because of conflict of www and now www site)
- Fixed handling WordPress core sitemap entry from robots.txt
- Added option to flush database rewrite on plugin deactivation
- Added option to split the custom categories into multiple sitemaps by custom taxonomy
- Added option to omit the posts specified as disallow in robots.txt
- Added option to set links per page for tags and categories
- Added option to set a custom filename for the sitemap
- Added option to list custom post in the archive sitemap
4.1.1 (2022-04-07)
- fix security issue related to Cross-Site Scripting attacks on debug page
- fix HTTP error while generating sitemap (because of conflict of www and now www site)
- fix handles the removal of WordPress native sitemap entry from robots.txt
- added option for flush database rewrite on deactivate plugin
- added options for split the custom categories into multiple sitemap by custom taxonomy
- added options to omit the posts which added in robots.txt to disallow
- added option to set links per page for tags and categories
- added option for provide the custom name for the sitemap.xml file
- added option for custom post type’s list into the archive sitemap
- added support of manage priorities and frequencies for products category
4.1.0 (2018-12-18)
- Fixed security issue related to escaping external URLs
- Fixed security issue related to option tags in forms
4.0.9 (2017-07-24)
- Fixed security issue related to donation functionality.
4.0.8 (2014-11-15)
- Fixed bug regarding the exclude categories feature, thanks to Claus Schöffel!
4.0.7.1 (2014-09-02)
- Sorry, no new features this time… This release only updates the Compatibility-Tag to WordPress 4.0. Unfortunately there is no way to do this anymore without a new version
4.0.7 (2014-06-23)
- Better compatibility with GoDaddy managed WP hosting
- Better compatibility with QuickCache
- Removed WordPress version from the sitemap
- Corrected link to WordPress privacy settings (if search engines are blocked)
- Changed hook which is being used for sitemap pings to avoid pings on draft edit
4.0.6 (2014-06-03)
- Added option to disable automatic gzipping
- Fixed bug with duplicated external sitemap entries
- Don’t gzip if behind Varnish since Varnish can do that
4.0.5 (2014-05-18)
- Added function to manually start ping for main-sitemap or all sub-sitemaps
- Added support for changing the base of the sitemap URL to another URL (for WP installations in sub-folders)
- Fixed issue with empty post sitemaps (related to GMT/local time offset)
- Fixed some timing issues in archives
- Improved check for possible problems before gzipping
- Fixed empty archives and author sitemaps in case there were no posts
- Fixed bug which caused the Priority Provider to disappear in recent PHP versions
- Plugin will also ping with the corresponding sub-sitemap in case a post was modified
- Better checking for empty external urls
- Changed text in XSL template to be more clear about sitemap-index and sub-sitemaps
- Changed content type to text/xml to improve compatibility with caching plugins
- Changed query parameters to is_feed=true to improve compatibility with caching plugins
- Switched from using WP_Query to load posts to a custom SQL statement to avoid problems with other plugin filters
- Added caching of some SQL statements
- Added support feed for more help topics
- Added link to new help page
- Cleaned up code and renamed variables to be more readable
- Updated Japanese Translation, thanks to Daisuke Takahashi
4.0.4 (2014-04-19)
- Removed deprecated get_page call
- Changed last modification time of sub-sitemaps to the last modification date of the posts instead of the publish date
- Removed information window if the statistic option has not been activated
- Added link regarding new sitemap format
- Updated Portuguese translation, thanks to Pedro Martinho
- Updated German translation
4.0.3 (2014-04-13)
- Fixed compression if an gzlib handler was already active
- Help regarding permalinks for Nginx users
- Fix with gzip compression in case there was other output before already
- Return 404 for HTML sitemaps if the option has been disabled
- Updated translations
4.0.2 (2014-04-01)
- Fixed warning if an gzip handler is already active
4.0.1 (2014-03-31)
- Fixed bug with custom post types including a “-“
- Fixed some 404 Not Found Errors
4.0 (2014-03-30)
- No static files anymore, sitemap is created on the fly!
- Sitemap is split-up into sub-sitemaps by month, allowing up to 50.000 posts per month! More information
- Support for custom post types and custom taxonomis!
- 100% Multisite compatible, including by-blog and network activation.
- Reduced server resource usage due to less content per request.
- New API allows other plugins to add their own, separate sitemaps.
- Note: PHP 5.1 and WordPress 3.3 is required! The plugin will not work with lower versions!
- Note: This version will try to rename your old sitemap files to *-old.xml. If that doesn’t work, please delete them manually since no static files are needed anymore!
3.4.1 (2014-04-10)
- Compatibility with mysqli
Version 3.4 (2013-11-24)
- Fixed deprecation warnings in PHP 5.4, thanks to Dion Hulse!
3.3 (2013-09-28)
- Fixed problem with file permission checking
- Filter out hashs (#) in URLs
3.2.9 (2013-01-11)
- Fixed security issue with change frequencies and filename of sitemap file. Exploit was only possible with admin account.
3.2.8 (2012-08-08)
- Fixed wrong custom taxonomy URLs, thanks to ramon fincken of the wordpress.org forum!
- Removed ASK ping since they shut down their service.
- Exclude post_format taxonomy from custom taxonomy list
3.2.7 (2012-04-24)
- Fixed custom post types, thanks to clearsite of the wordpress.org forum!
- Fixed broken admin layout on WP 3.4
3.2.6 (2011-09-19)
- Removed YAHOO ping since YAHOO uses bing now
- Removed deprecated function call
3.2.5 (2011-07-11)
- Backported Bing ping success fix from beta
- Added friendly hint to try out the new beta
3.2.4 (2010-05-29)
- Added (GMT) to date column in sitemap xslt template to avoid confusion with different time zones
- Fixed wrong SQL statement for author pages, thanks to twoenoug
- Fixed several deprecated function calls
- Note: This release does not support the new multisite feature
Follow this listing's changes (Atom feed)