Automattic/jetpack

Sitemaps: Disable Image Sitemaps

開放

#7,248 建立於 2017年5月26日

 (18 則留言) (3 個反應) (0 位負責人)PHP (877 個分叉)user submission
Customer Report [LEGACY]EnhancementGood For CommunityHacktoberfest[Feature] Sitemaps[Pri] Normal[Type] Good First Bug

倉庫指標

星標
 (1,808 顆星)
PR 合併指標
 (平均合併 4天 5小時) (30 天內合併 645 個 PR)

描述

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.

貢獻者指南