Custom Post Types Not Appearing in Sitemap Despite Being Set to Index

#1073711
  • Resolved Widya Andini
    Rank Math free

    Hi everyone,

    I’m using the Rank Math SEO plugin and have a strange issue within anime website. I’ve enabled a custom post type (for example, anime-reviews) and configured it to be indexed in the plugin settings. However, the sitemap (/sitemap_index.xml) is not listing the custom post type at all — not even as a separate sitemap.

    What I have tried:

    Verified that the post type is publicly queryable and has_archive is set to true.

    Confirmed that “Include in Sitemap” and “Index” are both enabled in Rank Math settings for the post type.

    Cleared all caches (Rank Math, theme, WP Rocket).

    Regenerated sitemap.

    Checked robots.txt — nothing is disallowing it.

    Still, the custom post type does not appear in the sitemap, and as a result, none of those pages are getting indexed in Google Search Console.

    Is this a bug, or am I missing a hidden setting or conflict?

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with your custom post types not appearing in the sitemap. It sounds like you’ve already taken several important steps to troubleshoot this problem. Here are a few additional things you can check:

    1. Sitemap Settings: Ensure that the custom post type is correctly configured in the Rank Math settings. You can do this by navigating to Rank Math SEO → Sitemap Settings and confirming that the custom post type is set to be included in the sitemap.

    2. Post Type Registration: Double-check the registration of your custom post type in your theme or plugin code. Make sure that it is registered with the public argument set to true and that it has the has_archive argument set to true as well.

    3. Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You might want to temporarily disable other plugins to see if that resolves the issue.

    4. Theme Issues: If you are using a custom theme, there might be an issue with how the theme interacts with Rank Math. Switching to a default WordPress theme (like Twenty Twenty-One) temporarily can help identify if the theme is causing the problem.

    5. Check for Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Ensure that there are no custom canonicals set for your custom post types.

    If after checking these points the issue persists, we recommend replying to this ticket with your site URL so that a human agent from our support team can assist you further. They will be able to investigate the issue more thoroughly.

    Thank you for raising this concern, and we hope to resolve it for you soon!

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Custom Post Types Not Appearing in Sitemap Despite Being Set to Index’ is closed to new replies.