Companion Sitemap Generator – HTML & XML


What is a sitemap?

A sitemap is a list of pages of your website accessible to crawlers or users, typically organized in hierarchical fashion.

Sitemaps make relationships between pages and other content components.
It shows shape of information space in overview.
Sitemaps can demonstrate organization, navigation, and labeling system.

Plugin Features

Easily create a sitemap which is then updated every hour, or can be updated manually at any time via the WordPress dashboard.You can select pages/posts or entire posttypes that you want to exclude from the sitemap.
It generates both an XML sitemap and an HTML sitemap that you can display on your site via the shortcode.

What do we add to the sitemap?

The following URLs are added to the sitemap (with an option to hide them, ofcourse):

  • Pages
  • Posts
  • Post categories
  • Post tags
  • Custom post types
  • Custom taxonomies
  • Additional pages: Add URLs yourself

Robots editor

While a sitemap allows search engines to scan pages faster, a robots.txt file disallows search engines from scanning certain pages. This plugin also comes with a handy robots editor to give you full control over your search engine visibility.


Companion Sitemap Generator also supports multilingual sitemaps. Right now this is only supported when using the Polylang plugin but more plugins will be added upon request.


This plugin has support for multisite. Each site gets their own sitemap.


  • Sitemap dashboard
  • Exclude posts from sitemap
  • Quickly update via dashboard
  • Edit robots file
  • HTML Sitemap


Detta tillägg erbjuder 1 block.

Companion Sitemap Generator - HTML & XML


Manual install

  1. Download Companion Sitemap Generator.
  2. Upload the ’Companion Sitemap Generator’ directory to your ’/wp-content/plugins/’ directory.
  3. Activate Companion Sitemap Generator from your Plugins page.

Via WordPress

  1. Search for ’Companion Sitemap Generator’.
  2. Click install.
  3. Activate.


  1. Configure this plugin via Tools > Sitemap or via Tools > Robots.


7 mars, 2020
Thank you Papin for the Companion Sitemap Generator and Robots options. This made things a lot easier for me to manage. Sending you a donation, keep up the good work.
13 december, 2019
I really recommend this plugin. I'm using it in all my sites and for sure I'll contribute or make a donation, because it solved several problems in my sites. 100% APPROVED. PORTUGUESE Eu realmente recomendo esse plugin. Estou usando em todos meu sites e com certeza irei contribuir ou fazer uma doação, pois resolveu diversos problemas em meus sites. 100% APROVADO.
Läs alla 30 betyg

Bidragsgivare och utvecklare

”Companion Sitemap Generator – HTML & XML” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”Companion Sitemap Generator – HTML & XML” har översatts till 5 språk. Tack till översättarna för deras bidrag.

Översätt ”Companion Sitemap Generator – HTML & XML” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.


4.1.0 (March 11, 2020)

  • New: A better, cleaner dashboard. We’ve also moved support, settings and the robots editor to here
  • New: Additional pages, add pages outside of your WordPress installation to your sitemaps
  • Tweak: Support for WordPress 5.4
  • Tweak: Minor security improvements

4.0.4 (January 10, 2020)

  • Fixed issue where the sitemap wouldn’t load in the backend
  • Various security improvements

4.0.3 (January 5, 2020)

  • Fixed an issue where sometimes you couldn’t uncheck an item in the content filter

4.0.2 (January 4, 2020)

  • Fixed an issue where the XML sitemap would seem blank
  • Fixed an issue where sometimes the settings wouldn’t actually save

4.0.1 (January 3, 2020)

  • Removed shortcode generator in favor of Gutenberg block
  • Moved settings to new tab called ”Settings” and gave the dashboard a redesign
  • Renamed the ”Exclusion” tab to ”Content filter”
  • Fixed a few (minor) errors
  • Made some under the hood security and performance improvements

4.0 (January 2, 2020)

  • New: We’ve added a fancy shiny gutenberg block to replace the shortcode

3.9.1 (November 7, 2019)

  • Tweak: Only load frontend stylesheet on the HTML sitemap page

3.9.0 (September 27, 2019)

  • New: Option to disable XML stylesheet

3.8.9 (September 20, 2019)

  • Actually added XML styling
  • Added option to use custom XML stylesheet

3.8.8 (August 7, 2019)

  • New: XML sitemap now has styling added
  • Fixed: Few minor errors

3.8.7 (August 3, 2019)

  • New: Multilingual categories, terms etc. will now show up in the proper format on XML sitemap
  • Fixed: Few minor errors
  • Tweak: All items in HTML sitemap now have an unique class

3.8.6 (May 16, 2019)

  • Fix: Error: Cannot modify header information

3.8.5 (April 6, 2019)

  • Fix: Variable mismatch error

3.8.4 (March 12, 2019)

  • Actually added the option to exclude items in taxonomies

3.8.3 (March 12, 2019)

  • Added hierarchy to categories
  • Option to exclude items in taxonomies (Categories, Tags and More)

3.8.2 (March 7, 2019)

  • Few changes in HTML sitemap classes

3.8.1 (February 27, 2019)

  • Security improvements

3.8.0 (February 22, 2019)

  • New: Added support for Post tags and Custom taxonomies
  • Fix: Fixed a few minor errors

3.7.4 (February 20, 2019)

  • New: New support page
  • New: Exclude categories option
  • Improvement: On the HTML sitemap custom post types no longer show as Post type: {identifier} but now show using the proper name
  • Improvement: Some security improvements
  • Fix: Fixed a few errors when saving settings
  • BETA: Few fixes for new gutenberg block beta


  • We no longer create a robots file on activation, instead you’ll have to enable this yourself.


  • New: We’re working hard on a Gutenberg block to ”replace” the shortcode. If you’d like to give feedback on this button you can start testing it with this version 🙂
  • Fixed: Undefined index page error
  • Fixed: Exclude Posts table being a bit off
  • Fixed: Call to undefined function error


  • New: We’re working hard on a Gutenberg block to ”replace” the shortcode. If you’d like to give feedback on this button you can start testing it with this version 🙂


  • Fix: Cross-site request forgery (CSRF) vulnerabilitie
  • Removed add to content button for old editor


  • HTML sitemap columns work properly again
  • HTML sitemap now has Level 3 hierarchy (still working on even deeper levels)


  • Re-enabled post-exclusion and robots editor for multisite


  • Fix for multisite issues.


  • Multisite support stopped working, the sitemaps are fixed but settings are temporarily disabled on sub-sites.


  • Fix: HTML sitemap would look distorted when post types were hidden or empty


  • Fix: Error: unexpected ’[’


  • Fix: Multisite support
  • Fix: Error with & sign in search console


  • New: Set auto-update schedule, how often should the sitemap be updated?


  • New: HTML sitemap: Show in 2 columns
  • New: HTML sitemap: Sort by date or name
  • New: HTML sitemap: Order ASC or DESC


  • Dashboard redesign
  • Add HTML sitemap tab (settings coming up)


  • Added Hungarian translations


  • New: Added categories to the sitemap


  • Exclude posts fix for multiple languages


  • New: Support for multilingual (only works with Polylang atm)


  • New: Added lastmodified to sitemap
  • New: Added changefreq to sitemap


  • Fix: Undefined variable: charset_collate


  • Fix: Undefined index: page error
  • Fix: Undefined index: tabbed error


  • Fix: Few strings were not translatable


  • Improvement: HTML sitemap pages now have hierarchy


  • Fix: Pages not being added to sitemap


  • Fix: Update not working


  • New: Exclude post types.
  • New: Added classes to the HTML sitemap list to allow styling.
  • New: Added button to quicker insert HTML sitemap into a page.
  • Fix: Empty post types are no longer shown in HTML sitemap.


  • Few minor fixes


  • Fix: Some strings could not be translated.
  • Fix: You could not exclude posts from multiple post types.
  • Improvement: Minor dashboard improvement.
  • New: Update sitemap from plugin dashboard.


  • Fix: After selecting posts all posts were selected


  • Completely rewrote the plugin fixing sooo many bugs
  • Fix: Better errors
  • Fix: auto-updating of sitemap
  • New: HTML-sitemap shortcode
  • New: Sitemap is updated every hour
  • New: Better robots dashboard
  • New: Better sitemap dashboard
  • New: Remove pages/posts etc. from sitemap
  • Improvement: Better dashboard widget
  • Improvement: Cleaner code
  • Improvement: Better update handling

View full changelog