Maison GR Sitemap
One sitemap, two readers: the XML search engines need, and a page in your theme's own colours and type for people.
Install in
Search engines get the XML they need at /sitemap.xml. A person who opens the same address gets a page set in your theme’s own colours and fonts, with every page listed, grouped by section and searchable.
What it lists
- The home page, and every published post, page and public custom post type, each dated from its last edit.
- The archive of each category, tag and public taxonomy term in use.
- Each post’s featured image, for image search.
What it leaves out
- Pages an SEO plugin marks noindex: Yoast SEO, Rank Math, SEOPress and The SEO Framework.
- Password-protected, private and draft posts, and attachment pages.
How the two readers are told apart
A browser opening a page sends Sec-Fetch-Dest: document and asks for HTML; crawlers send neither. Those two headers decide which answer is served. No user agent is read, and both answers list exactly the same addresses. The page is noindex and cached privately.
What it changes
- WordPress’s own sitemap (
/wp-sitemap.xml) is turned off and redirects to/sitemap.xml. Deactivating the plugin brings it back. robots.txtnames the sitemap.- If Yoast SEO, Rank Math or All in One SEO also makes a sitemap, a notice says how to turn theirs off.
Languages
With Polylang or WPML, translations are linked with hreflang, including x-default, and unpublished translations are left out. Polylang is tested end to end; WPML support is in beta. The page speaks English or French, following the site’s language.
The plugin is open source: github.com/maison-gr/maisongr-sitemap-wordpress.
Written by Joobi from the project's own listing. See the source page
1.0.1
- The admin notice now names Jetpack, SEOPress and The SEO Framework when they make their own sitemap, with where to turn it off, and every SEO plugin it finds. Jetpack and The SEO Framework answer /sitemap.xml themselves, so their sitemap must be off for this one to show.
- Polylang support is no longer in beta.
1.0.0
- First release.
Follow this listing's changes (Atom feed)