Sitemap is different when logged in and logged out, and the latter is incorrect

[ad_1]

Thank you for your plugin. I’ve installed it today for the first time on my staging site to test it.

I’m having a bizarre situation where the sitemap being shown on my site is different depending on whether I’m logged in or logged out.

I make changes in the Settings > XML Sitemap, and save the changes. I’ve also manually excluded some pages with the “Exclude this post from the XML sitemap” option.

I go to “View the current XML sitemap index”, and the changes are correctly shown — the pages that should be excluded are excluded.

But when I go to a Guest profile to check, the changes aren’t implemented. It still shows the pages that are supposed to be excluded.

What I’ve tried:

  • In the Guest profile, the sitemap is incorrect. I open a new tab and log in to my website. Go back to the sitemap and refresh, and it’s correct. Return to the second tab, log out. Go back to the sitemap and refresh, and it’s incorrect again! I can repeat this multiple times, and it’s always the same — when logged in, the sitemap is correct, and when logged out, the sitemap still shows the excluded pages.
  • I’ve repeated this in my normal profile, and the same happens.
  • I’ve repeated this in yet another profile, and again it happens.
  • I’ve tried this in Chrome and in Firefox on Linux, and in Edge on Windows 11.
  • I have cleared every cache there is to clear: The WordPress cache plugin; the theme’s cache; memcache; server cache; the CDN (and even disabled it); the browser’s data; and finally closing and reopening the browser. Nothing solves the problem.
  • I’ve ensured that I’m typing the correct URL by using cut-and-paste, and more simply by just refreshing the page rather than re-entering the URL.
  • The sitemap is https://[mydomain]/wp-sitemap-posts-page-1.xml (it’s only a small website with few pages and no posts).

I’m at my wits end. How can I solve this problem, please?

More information:

  • WordPress version 6.6.2
  • WP Sitemaps Config version 2.2.2

Thank you

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer