WordPress添加Google添加结构化数据FAQ

结构化数据是一种提供网页相关信息并对网页内容进行分类的标准化格式常见问题解答 (FAQ) 页包含一系列有关特定主题的问题和答案。正确标记了 FAQ 页,会在 Google 搜索中显示为富媒体搜索结果,并可生成一个 Google 助理操作,从而帮助您的网站覆盖合适的用户。

添加代码

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": {
"@type": "Question",
"name": "你的问题",
"acceptedAnswer": {
"@type": "问题回答",
"text": "PayPal and Stripe."
}
}
}
</script>

添加多个Q&A

<script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "mainEntity": [{
        "@type": "Question",
        "name": "你的问题",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "问题回答"
        }
      }, {
        "@type": "Question",
        "name": "你的问题",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "问题回答"
        }
      }, {
        "@type": "Question",
        "name": "你的问题",
        "acceptedAnswer": {
          "@type": "Answer",
          "text":"问题回答"}
        }]
    }
    </script>

使用方法

添加到需要适配GoogleFAQ页面代码中即可

展现形式

20201117-095fb9e2ff877.png

相关链接

Google结构化数据检查工具:https://search.google.com/structured-data/testing-tool/u/0/

官方文档及更多展现方式:https://developers.google.com/search/docs/guides/search-gallery

文章来源:https://www.zmki.cn/5628.html

文章由官网发布,如若转载,请注明出处:https://www.veimoz.com/756
0 评论
1.9k

发表评论

!