Yes, exactly. Rank Math automatically hides sub-sitemaps (like post-sitemap.xml and category-sitemap.xml) from the main sitemap index if there is no published content inside them.

Here is why both are missing and how they will appear:

  • Post Sitemap (post-sitemap.xml): Rank Math will not generate or display this sub-sitemap until you publish at least one post set to Index.
  • Category Sitemap (category-sitemap.xml): Categories only appear in the sitemap once at least one published post is assigned to them. Even if you created categories in WordPress, empty categories are excluded by default to avoid submitting empty pages to search engines.

How to Verify and Fix

  1. Publish a Test Post:
    • Create a dummy post, assign it to a category, and set its status to Published (not Draft or Scheduled).
    • Refresh your sitemap_index.xml URL in an incognito window or clear your cache. post-sitemap.xml and category-sitemap.xml will appear immediately.
  2. Check Rank Math Settings (If they still don’t show up after publishing):
    • Go to Rank Math > Sitemap Settings > Posts. Ensure Include in Sitemap is toggled ON.
    • Go to Rank Math > Sitemap Settings > Categories. Ensure Include in Sitemap is toggled ON and Include Empty Terms is enabled if you want empty categories listed.

Leave a Comment