Make WordPress Core

Opened 7 months ago

Last modified 6 months ago

#59998 new enhancement

Hide terms from XML sitemap that have only one object in them

Reported by: joostdevalk's profile joostdevalk Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Sitemaps Keywords:
Focuses: Cc:


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).

Change History (0)

Note: See TracTickets for help on using tickets.