[wp-trac] [WordPress Trac] #51394: Keeping archived content out of Sitemap (was: Archived <=> Sitemap)

WordPress Trac noreply at wordpress.org
Sat Sep 26 00:37:50 UTC 2020

#51394: Keeping archived content out of Sitemap
 Reporter:  marisol3007      |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Sitemaps         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
Changes (by sabernhardt):

 * component:  General => Sitemaps


 @marisol3007 Hi and thanks for the ticket!

 In this case, I recommend using a plugin. There are several SEO plugins
 that can help restrict content in an XML sitemap, and they also can tell
 search engines not to index those pages if the crawler finds them another

 (Technically, the `wp_sitemaps_posts_query_args` filter can remove posts
 from the standard sitemap when they're assigned a specific tag whose ID is
 set as the `tag__not_in` value in the filter. However, that only adjusts
 the sitemap, and it requires some familiarity with adding filters.)

Ticket URL: <https://core.trac.wordpress.org/ticket/51394#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list