• Resolved sswebdeval

    (@sswebdeval)


    I have a custom post type that is not correctly displaying in the sitemap.

    I made sure the custom post type was created with ‘public’ => ‘true’ so that it was correctly set up to use Yoast.

    However when I update the Advanced settings for a “resource” post to NO/NO (No to search engine visibility and no to following links), it does not update the page-sitemap.xml.

    I have tried disabling the W3 Cache plugin we use on the site, turning off Sitemap generation in the General Settings > Features, clearing our Kinsta Server cache, and re-enabling the Sitemap Generation (without turning on the W3 cache plugin). After doing all that the sitemap still does not update.

    What other resources or advice is out there to help me understand why this custom post type is not being handled correctly in the generated sitemaps?

Viewing 1 replies (of 1 total)
  • Thread Starter sswebdeval

    (@sswebdeval)

    So I was looking at the wrong sitemap. Yoast SEO works as expected.

    The issue in my case is that the site put links to posts using my custom post type, Resources, in the pages-sitemap.xml instead of its own resources-sitemap.xml.

    Looking at the correct sitemap, changes to it happen as expected when I make a new resource post. When I set the page to not be visible on search engines or follow links, the resource is removed from the sitemap right away. Changing those settings to YES puts it back on the resource sitemap right away.

    It always seems like when I post a topic, I end up finding new information. Hope this helps someone else with their Custom Post Type:

    1. Ensure your CPT has public => true in the register_post_type() arguments array that creates it.
    2. Check to make sure there isn’t a unique sitemap for the CPT you are troubleshooting.
Viewing 1 replies (of 1 total)
  • The topic ‘Draft pages or pages marked No in Advanced settings still showing on sitemap’ is closed to new replies.