[wp-trac] [WordPress Trac] #59998: Hide terms from XML sitemap that have only one object in them

WordPress Trac noreply at wordpress.org
Fri Dec 1 17:52:03 UTC 2023


#59998: Hide terms from XML sitemap that have only one object in them
-------------------------+-----------------------------
 Reporter:  joostdevalk  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Sitemaps     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 People create a lot of taxonomy terms, most specifically, tags. On many,
 many sites, a lot of those tags only have one post in them. This results
 in a term archive with 1 single post. This isn't useful to anyone, and it
 surely isn't useful to add to our XML sitemaps.

 So, I would propose that instead of what we currently do, which is hiding
 all the ''empty'' terms, we hide all the terms that have less than 2 posts
 in them (so, 0 or just 1).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59998>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list