WordPress手动为Google添加结构化数据FAQ

WordPress手动为Google添加结构化数据FAQ

  Whoa!~ 此文章已被收录至钻芒精选·美好的事物带来好心情!请享用。

结构化数据是一种提供网页相关信息并对网页内容进行分类的标准化格式常见问题解答 (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

相关链接

 

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容