Automattic/jetpack

Sitemaps: Disable Image Sitemaps

オープン

#7,248 opened on 2017/05/26

 (18 件のコメント) (3 件のリアクション) (0 人の担当者)PHP (877 件のフォーク)user submission
Customer Report [LEGACY]EnhancementGood For CommunityHacktoberfest[Feature] Sitemaps[Pri] Normal[Type] Good First Bug

Repository metrics

Stars
 (1,808 個のスター)
PR merge metrics
 (平均マージ 4d 5h) (30d で 645 merged PRs)

説明

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

コントリビューターガイド