html - Google Rich Snipper structured data - http://schema.org/Recipe - correct way to add ratings -


i have wordpress site have posts using "http://schema.org/recipe"

can show me correct way add in ratings "http://schema.org/recipe"?

from https://schema.org/rating copy code json-ld tab in header.php. use this

<script type="application/ld+json"> {   "@context": "http://schema.org",   "@type": "product",   "aggregaterating": {     "@type": "aggregaterating",     "ratingvalue": "3.5",     "reviewcount": "11"   },   "description": "0.7 cubic feet countertop microwave. has 6 preset cooking categories , convenience features add-a-minute , child lock.",   "name": "kenmore white 17\" microwave",   "offers": {     "@type": "offer",     "availability": "http://schema.org/instock",     "price": "55.00",     "pricecurrency": "usd"   },   "review": [     {       "@type": "review",       "author": "ellie",       "datepublished": "2011-04-01",       "description": "the lamp burned out , have replace it.",       "name": "not happy camper",       "reviewrating": {         "@type": "rating",         "bestrating": "5",         "ratingvalue": "1",         "worstrating": "1"       }     },     {       "@type": "review",       "author": "lucas",       "datepublished": "2011-03-25",       "description": "great microwave price. small , fits in apartment.",       "name": "value purchase",       "reviewrating": {         "@type": "rating",         "bestrating": "5",         "ratingvalue": "4",         "worstrating": "1"       }     }   ] } </script> 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -