Schema warning about QAPage on Question type

北战南征 提交于 2019-12-06 13:53:18

Ok so after an entire day of trying I finally stumbled on the answer.

I was getting that same warning if I removed everything but the question item, so it's something related to that. I tried a lot of things and on a hunch I ended up wrapping the whole collection of questions in this:

<div itemscope itemtype="http://schema.org/FAQPage">
  <!-- Rest of Q&A markup -->
</div>

And now I get valid schema without any errors or warnings.

I feel like the documentation and error messages are not very good, or I just don't understand this ecosystem and its resources yet!

p.s. I also tried the QAPage itemtype but that requires a lot more props and doesn't actually describe the page I'm building, so FAQPage comes closest.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!