Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#59998 new enhancement

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

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

Description

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 (1)

#1 @chaos1
2 years ago

I've been working with a WordPress theme and used the demo content to speed run on how to build out templates, posts, pages, and custom post types on Elementor.

While I was setting up a Google Ads campaign, it suggested landing pages that I had no idea was visible. It turns out Google Ads grabbed the sitemaps.xml page and made suggestions based off of that.

I discovered all the demo content was exposed to the internet, set it all to drafts, but still see custom post types that shouldn't be in my sitemaps.xml, along with administrative level user that shouldn't be displayed.

Version 0, edited 2 years ago by chaos1 (next)
Note: See TracTickets for help on using tickets.