• Resolved ashuga

    (@ashuga)


    I have a custom post type (shorthand_story) that’s crashing my sitemap generation due to memory exhaustion. The posts contain large embedded content (218 posts totaling ~1GB of post_content data). When Yoast tries to build the sitemap, it exceeds PHP’s 256MB memory limit.

    I want to exclude this post type from the XML sitemap while still allowing the posts to be indexed (they’re discoverable via internal links).

    When I disable “Show in search results” in Yoast settings for this post type, it also adds <meta name="robots" content="noindex, follow"> to the posts themselves, which I don’t want.

    Is there a way to:

    1. Exclude a post type from sitemap generation only, OR
    2. Prevent Yoast from loading full post_content when building sitemaps?

    Thanks for any guidance.

Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @ashuga

    Thanks for reaching out. Unfortuntely, we do not have a workaround that excludes a custom post type from the sitemap index without adding a noindextag. Any page which a user wishes to be discovered and indexed by search engines are listed in an XML sitemap. So, Yoast SEO loads the full post content when generating sitemaps.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.