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

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

添加代码

  1. <script type="application/ld+json">
  2. {
  3. "@context": "https://schema.org",
  4. "@type": "FAQPage",
  5. "mainEntity": {
  6. "@type": "Question",
  7. "name": "你的问题",
  8. "acceptedAnswer": {
  9. "@type": "问题回答",
  10. "text": "PayPal and Stripe."
  11. }
  12. }
  13. }
  14. </script>

添加多个Q&A

  1. <script type="application/ld+json">
  2. {
  3. "@context": "https://schema.org",
  4. "@type": "FAQPage",
  5. "mainEntity": [{
  6. "@type": "Question",
  7. "name": "你的问题",
  8. "acceptedAnswer": {
  9. "@type": "Answer",
  10. "text": "问题回答"
  11. }
  12. }, {
  13. "@type": "Question",
  14. "name": "你的问题",
  15. "acceptedAnswer": {
  16. "@type": "Answer",
  17. "text": "问题回答"
  18. }
  19. }, {
  20. "@type": "Question",
  21. "name": "你的问题",
  22. "acceptedAnswer": {
  23. "@type": "Answer",
  24. "text":"问题回答"}
  25. }]
  26. }
  27. </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 评论
2.3k

发表评论

!