Find Out Why a Page Is Missing from Your SiteSEO Sitemap with AI
Find the SiteSEO rule that keeps a page out of your sitemap, and the one change that brings it back.
Prerequisites
A site connected to WPVibe running SiteSEO 1.4.2 or newer (tested on 1.4.2, free) on WordPress 6.9 or newer, with an administrator account, and the Abilities - SiteSEO switch turned on under SiteSEO > AI Abilities.
My WordPress site uses SiteSEO. The page at [page URL] is missing from my sitemap. Find out why without changing anything. 1. Run discover_abilities with category siteseo-posts. If siteseo-posts/seo-data-get is not there, run rest_api GET /wp/v2/plugins with search siteseo. If SiteSEO is active, tell me its AI abilities are off until I turn on the Abilities - SiteSEO switch at the top of SiteSEO > AI Abilities in wp-admin (the MCP Adapter and Application Password steps on that page are not needed for WPVibe; if the switch is already on, the site needs SiteSEO 1.4.2 or newer and WordPress 6.9 or newer), and stop. If it is installed but not active, tell me to activate it and then turn on that switch, and stop. If it is not installed, tell me this recipe is for the free SiteSEO plugin, and stop. 2. Run siteseo-sitemap/status-get. If enabled is false, stop and tell me the XML sitemap is off in SiteSEO's sitemap settings. 3. Find the page's ID, post type, status and whether it has a password (rest_api GET /wp/v2/pages with slug SLUG, status any and context edit, or the same on /wp/v2/posts or the type's own route; without status any only published posts come back, and the password field shows only with context edit). SiteSEO lists only published posts without a password: if the status is not publish or it has a password, that is the cause, so tell me and stop. If it is the static front page, tell me SiteSEO lists it as the home URL at the top of each post type's first sitemap file, not under its own address, and stop. 4. Run siteseo-settings/get. If the post type is not under settings.sitemap.xml_sitemap_post_types_list with include true, that is the cause: tell me to tick it in SiteSEO's sitemap settings. 5. Run siteseo-posts/seo-data-get for the page. If robots.noindex is true, SiteSEO leaves it out of the sitemap on purpose: tell me to untick noindex in the SiteSEO box under the editor only if I want it in search. Also note if canonical_url points somewhere else, since search engines will index that address instead. 6. Fetch the sitemap index with get_page_html, then each TYPE-sitemapN.xml file it lists for this post type, and check whether the page's URL is in any of them. 7. If none of the rules above applies and the URL is still missing, tell me SiteSEO is serving a cached list (it keeps one for up to 12 hours and rebuilds it when a post of that type is saved). Ask before fixing it; on my yes, and only if its status is publish, run run_wp_cli post update ID --post_status=publish, which re-saves the page without changing its content, and fetch the sitemap again to confirm it is back. If it still is not, say another plugin or a page cache is the next thing to check.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Find Out Why a Page Is Missing from Your SiteSEO Sitemap with AI” recipe from the WPVibe cookbook on my connected site.
You published a page, it never shows up in search, and when you open the sitemap it isn’t there. The reason could be the page, its type of content, a site-wide setting, or a cached copy of the sitemap, and they all look the same from outside.
The AI checks each rule SiteSEO uses to build its sitemap against your page: published or not, password, noindex, whether its content type is ticked in the sitemap settings, and the cached copy. It tells you which rule applies and the one change that puts the page back.
It changes nothing unless you say so. If the cause is a stale cached sitemap, it can re-save the page without changing its content, which makes SiteSEO rebuild that list straight away.
Outcome
You know why the page is missing from the sitemap and what to change, or it is back in the sitemap.