Automattic / Automattic/jetpack
Sitemaps: Disable Image Sitemaps
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
In the sitemaps module there's currently no way to disable any specific instances of the sitemaps, specifically the image sitemap.
Checking the developer options I'm seeing [filters for excluding specific images](https://developer.jetpack.com/?search_for=wpapi-hook&s=image+sitemap) but not a way to disable the full image sitemap.
requested in 3216712-t
> Is there a way to turn off the image sitemaps entirely? We don't use
> attachment pages in WP, and the sitemap is loaded with attachment pages,
> since we have thousands of unattached photos. Obviously we don't want that
> stuff indexed. I poked around the code, but couldn't figure out an easy way
> to do that.
Contributor guide
Research direction
Start by locating the sitemaps module and reviewing the existing developer filters for excluding images. Determine how the image sitemap is assembled and where an independent disable option would belong. Done means image sitemaps can be disabled without disabling other sitemap types, with coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100