目前,我们的网站上有一些页面列出了当地企业,在这些页面上,我们也有了推荐信。
我试图为这些页面制作json+ld,我读到,对于证明,您应该使用Review模式,但是对于itemReviewed,您应该将组织。
考虑到这一点,我想出了以下的json:
{
"reviews": [{
"author": {
"name": "Joe Blogs",
"@type": "Person"
},
"itemReviewed": {
"name": "Test Company",
"@type": "Organization"
},
"reviewBody": "This is a testimonial 1",
"@type": "Review"
}, {
"author": {
"name": "John Smith",
"@type": "Person"
},
"itemReviewed": {
"name": "Test Company",
"@type": "Organization"
},
"reviewBody": "Testimonial text 2",
"@type": "Review"
}, {
"author": {
"name": "Jane Doe",
"@type": "Person"
},
"itemReviewed": {
"name": "Test Company",
"@type": "Organization"
},
"reviewBody": "Testimonial content 3",
"@type": "Review"
}],
"url": "http://www.example.co.uk",
"@context": "https://schema.org/",
"name": "Test Company",
"@type": "LocalBusiness",
"image": "https://www.fillmurray.com/200/300"
}但是,当我在https://search.google.com/structured-data/testing-tool测试代码片段时,评论都失败了。
多个评审应该附带一个总体评级。
我应该如何添加推荐信,因为它们没有评级(或者是否有一种方法不需要多个评论的综合评级)?
发布于 2019-08-09 14:34:08
for the itemReviewed, you should put organization是错的。你从哪里弄来的?Google列出了一组类型,可以查看:https://developers.google.com/search/docs/data-types/review-snippet?hl=en你可以使用评论。你可以使用多个评论。但是要让SDTT验证代码片段,需要使用评级/聚合率来给Google一些数字。您可以在没有评级的情况下使用多个评论--这是有效的语法:
{
"@context": "https://schema.org/",
"review":
[{ "@type": "Review",
"itemReviewed": {
"@type": "Restaurant"
},
"name": "A good seafood place.",
"author": {
"@type": "Person",
"name": "Bob Smith"
},
"reviewBody": "The seafood is great.",
"publisher": {
"@type": "Organization",
"name": "Washington Times"
}},
{ "@type": "Review",
"itemReviewed": {
"@type": "Restaurant"
},
"name": "A good seafood place.",
"author": {
"@type": "Person",
"name": "Bob Smith"
},
"reviewBody": "The seafood is great.",
"publisher": {
"@type": "Organization",
"name": "Washington Times"
}}]
}在这里测试它:https://json-ld.org/playground/,您将看到。
https://webmasters.stackexchange.com/questions/124430
复制相似问题