niteshsaitand

Star Rating Rich Meta Tag

Jul 9th, 2019
2,085
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="application/ld+json">{
  2.     "@context": "http://schema.org",
  3.     "@type": "Review",
  4.     "itemReviewed": {
  5.         "@type": "Thing",
  6.         "name": "<?php the_title(); ?>"
  7.     },
  8.     "reviewRating": {
  9.         "@type": "Rating",
  10.         "ratingValue": "5",
  11.         "bestRating": "5",
  12.         "worstRating": "1"
  13.     },
  14.     "name": "<?php the_title(); ?> Review",
  15.     "author": {
  16.         "@type": "Person",
  17.         "name": "<?php echo get_the_author_meta('display_name'); ?>"
  18.     },
  19.     "reviewBody": "<?php echo get_bloginfo( 'description' ); ?>",
  20.     "publisher": {
  21.         "@type": "Organization",
  22.         "name": "<?php echo get_bloginfo( 'name' ); ?>"
  23.     }
  24. }</script>
RAW Paste Data