sybrew/the-seo-framework

"Exclude from Archive" also removes from sitemap.

Closed this issue · 1 comments

When "Enable archive query alteration?" is set to "In the database," "Exclude from Archive" on a post will exclude it from the sitemap as well. This behavior is reserved for "noindex" and redirects only.

Perhaps related; it at least helped me discover this issue: https://wordpress.org/support/topic/cpts-not-listed-in-sitemap/

We miss the proper hooks for WordPress Core Sitemaps. Escalated: https://core.trac.wordpress.org/ticket/56954.

I'm going to provide a workaround with the lowest performance impact. Core Sitemaps are loaded for every single request in WordPress, proving this problematic.