春季大清理:一些站点地图扩展程序标记即将停用
2022 年 5 月 6 日,星期五
多年来,我们为 Google 站点地图扩展功能(具体而言,是图片和视频扩展)引入了多个标记和标记属性。添加其中大多数代码可以让网站所有者更轻松地向 Google 搜索传送数据。
在评估 Google 站点地图扩展标记的值时,我们决定正式弃用某些标记和属性,并从我们的文档中移除它们。2022 年 8 月 6 日之后,已弃用的标记对索引编制和搜索功能没有任何影响。
如果您是站点地图插件开发者或管理自己的站点地图,则无需立即采取措施;您可以保留这些标记和属性,而不会出现任何缺点。将来,在这些更新被纳入图片和视频扩展的下一个架构版本中时,Search Console 可能会显示警告。
以下标记和属性会受到影响:
站点地图扩展 |
已弃用的 XML 标记或属性 |
建议 |
图片站点地图 |
caption |
请遵循我们的映像最佳实践。
|
geo_location |
title |
license |
|
视频站点地图 |
category |
请遵循我们的视频最佳实践。
|
player_loc[@allow_embed] |
player_loc[@autoplay] |
gallery_loc |
price[@all] |
tvshow[@all] |
通过简化站点地图扩展功能,我们希望您还能降低代码库的复杂性,同时确保站点地图的整体状态更清晰。如果您有任何疑问或意见,请参阅我们的站点地图文档,或者通过 Twitter 或在搜索中心论坛中与我们联系。
发布者:Google 搜索团队的 Gary Illyes
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
[null,null,[],[[["Google is deprecating certain tags and attributes in image and video sitemap extensions, effective August 6, 2022."],["These deprecated tags, including `caption`, `geo_location`, `title` for images and `category`, `player_loc` attributes, `gallery_loc`, `price`, `tvshow` for videos, will no longer influence indexing or search features."],["No immediate action is required for website owners or sitemap plugin developers as these tags can remain without negative consequences."],["Google recommends following their best practices for images and videos instead of using the deprecated tags for providing relevant information."],["This simplification aims to reduce codebase complexity and improve sitemap clarity."]]],["Google deprecated several tags and attributes within its Image and Video sitemap extensions, effective August 6, 2022. These include `caption`, `geo_location`, `title`, and `license` for Image sitemaps, and `category`, `player_loc` attributes, `gallery_loc`, and `price`, and `tvshow` for Video sitemaps. While no immediate action is required, deprecated tags will not impact indexing. Site owners are encouraged to follow best practices instead. Future Search Console updates will include warnings for these tags.\n"]]