为什么 Google 附加链接不适用于我的 WordPress 网站?
Why Google sitelinks does not work with my WordPress website?
我的 WordPress 根目录中有这个 XML 几个月了:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2017-08-10</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2017-08-07</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://example.com/portfolio</loc>
<lastmod>2017-08-07</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://example.com/contact</loc>
<lastmod>2017-08-07</lastmod>
<changefreq>monthly</changefreq>
</url>
</urlset>
但它对我的 Google 附加链接没有帮助。我在 Google 搜索结果中没有看到 "About"、"Portfolio"、"Contact"。
知道我还遗漏了什么吗?
这是三个不同的东西:
- 站点地图(您包含的XML)
- Google 附加链接(你好像问的是什么)
- Google 附加链接搜索框(您使用的标签)
站点地图(在 sitemaps.org protocol 之后)是一个可以帮助搜索引擎和其他消费者find/crawl 所有相关页面的文件。
Sitelinks are additional links that get displayed with your page’s search result in Google Search. You can’t do anything specific 得到它们。
Sitelink Searchbox 是在 Google 搜索中与您网页的搜索结果一起显示的搜索表单,通常与附加链接一起显示。您可以使用结构化数据(Schema.org 的 SearchAction
类型)通过您网站自己的搜索引擎为该搜索表单提供支持。
我的 WordPress 根目录中有这个 XML 几个月了:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2017-08-10</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2017-08-07</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://example.com/portfolio</loc>
<lastmod>2017-08-07</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://example.com/contact</loc>
<lastmod>2017-08-07</lastmod>
<changefreq>monthly</changefreq>
</url>
</urlset>
但它对我的 Google 附加链接没有帮助。我在 Google 搜索结果中没有看到 "About"、"Portfolio"、"Contact"。
知道我还遗漏了什么吗?
这是三个不同的东西:
- 站点地图(您包含的XML)
- Google 附加链接(你好像问的是什么)
- Google 附加链接搜索框(您使用的标签)
站点地图(在 sitemaps.org protocol 之后)是一个可以帮助搜索引擎和其他消费者find/crawl 所有相关页面的文件。
Sitelinks are additional links that get displayed with your page’s search result in Google Search. You can’t do anything specific 得到它们。
Sitelink Searchbox 是在 Google 搜索中与您网页的搜索结果一起显示的搜索表单,通常与附加链接一起显示。您可以使用结构化数据(Schema.org 的 SearchAction
类型)通过您网站自己的搜索引擎为该搜索表单提供支持。