Function to return Rating value by ID
-
Hi! Please, what function should I use to get Rating value for some ID?
This is because I’m having trouble enabling Rich Snippet.
So, I want to manually insert microdata (Schema.org/Store) like this page:The microdata I will manually insert is like this:
<div style="display: none;" itemscope itemtype="https://schema.org/Store"> <meta itemprop="name" content="Netshoes"> <meta itemprop="image" content="https://staticz.com.br/img/logos/netshoes.png"> <meta itemprop="url" content="https://www.meliuz.com.br/desconto/netshoes"> Rating: <span itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> <span itemprop="ratingValue">3.82</span>/5 - <span itemprop="ratingCount">770</span> votes </span> </div>
So, I need a way to get the Rating value by ID to populate the:
<span itemprop="ratingValue">3.82</span>
Please, what function will return Rating value by ID?
Thanks!
- The topic ‘Function to return Rating value by ID’ is closed to new replies.