2016-11-10 39 views

回答

3

你應該使用AggregateRating

<script type="application/ld+json"> 
{ 
    "@context" : "http://schema.org", 
    "@type" : "LocalBusiness", 
    "name" : "My Company", 
    "url" : "http://www.mycompany.com/", 
    "telephone" : "(+33) 1 23 45 67 89", 
    "email" : "[email protected]", 
    "address" : { 
     "@type" : "PostalAddress", 
     "streetAddress" : "1 Rue de la Place", 
     "addressLocality" : "Paris", 
     "postalCode" : "75000" 
    }, 
    "aggregateRating" : { 
     "@type" : "AggregateRating", 
     "ratingValue" : "4.2", 
     "bestRating" : "5", 
     "ratingCount" : "100" 
    }, 
    "openingHours": "Mo-Su 00:00-00:00" 
} 
</script> 

的片段上方應該只是把結束</html>標記之前,應展示一個得分4.2/5基於100個評分

+0

謝謝,但人們率我是否需要爲此創建一些內容? 而該網站是在WordPress的,所以我不知道我是否可以添加腳本。 它也可以在HTML中完成?而不是java。 – CalvinSaitch

+0

是的,你可以使用[HTML標記](https://schema.org/docs/gs.html#microdata_why)。至於如何建立您的評級,您可以爲您的網站開發一個評級插件,然後提取數據,或使用第三方應用程序,例如[Verified Reviews](http://www.verified-reviews。 co.uk /)或[eKomi](http://www.ekomi.com/us/) – roberto06

+0

,我希望它在我的網站url下面的代碼段中搜索結果不在網頁上。 – CalvinSaitch

相關問題