Opened 2 years ago
Last modified 18 months ago
#59998 new enhancement
Hide terms from XML sitemap that have only one object in them
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Sitemaps | Keywords: | |
| Focuses: | Cc: |
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).
Note: See
TracTickets for help on using
tickets.
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.