Schema.org电话推荐

时间:2018-01-15 13:53:38

标签: wordpress schema.org json-ld

我一直致力于在Google上开展本地业务并希望实施JSON-LD,我并不熟悉编码(wordpress用户)所以我使用生成器来创建代码,但是在Google中进行测试时结构化数据测试我得到警告/错误:字段:推荐电话。有人可以检查/查看代码构建方式是否有问题吗?我已经尝试过改变顺序等等,但这并没有给出我希望的结果。

<script type='application/ld+json'> 
{
  "@context": "http://www.schema.org",
  "@type": "ProfessionalService",
  "name": "Met Lidy kinder- en jeugdcoaching",
  "url": "https://website.nl/",
  "logo": "https://website.nl",
  "image": "https://website.nl",
  "description": "Description",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "Adress",
    "addressLocality": "City",
    "addressRegion": "Noord-Brabant",
    "postalCode": "5000AA",
    "addressCountry": "Netherlands"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": "51.000000",
    "longitude": "4.000000"
  },
  "openingHours": "Mo 13:30-18:00 Tu, We 09:00-18:00",
  "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "+123456789",
    "contactType": "reservations"
  }
}
 </script>

修改将详细信息更改为“常规”文字

1 个答案:

答案 0 :(得分:0)

从Schema.org的角度来看,您的数据非常好。 Schema.org从不需要财产。

Google的SDTT希望看到telephone实体的ProfessionalService属性。您正在为telephone实体提供ContactPoint属性。

除非您尝试获取使用ProfessionalService - telephone的Google丰富搜索结果,否则您可以保留您的数据。如果有如此丰富的结果,如果您不想在SDTT中发出警告,只需添加telephone属性(如果您愿意,可以保留ContactPoint):

{
  "@context": "http://schema.org",
  "@type": "ProfessionalService",

  "telephone": "+31628488435"

}

如果您不知道,ProfessionalService类型is deprecated