Core Sitemaps是来自Google Chrome Labs和WordPress官方的插件,该插件非常轻巧,在WordPres官方的文章:The Month in WordPress: January 2020中有提到,该插件也很有可能加入下一个WordPress版本中。
如上图,插件自动会为文章、页面、分类、标签、用户页面(我的测试数据)生成xml地图。
如何安装Core Sitemaps?
1、下载插件
- 官方下载:https://wordpress.org/plugins/core-sitemaps/
- Github下载:https://github.com/GoogleChromeLabs/wp-sitemaps
- 仪表盘插件页面搜索“Core Sitemaps Feature Plugin”安装
2、安装后直接启用
3、启用直接通过网站地址如 https://wpmore.cn/wp-sitemap.xml访问
4、并且需固定链接不能用默认的“朴素”方式,需要开启url重写才行
注:目前该插件不能与yoast seo插件一起使用,yoast seo有url重写,会把 sitemap.xml 跳转到 sitemap_index.xml