#is it possible to display a star rating in the site's search results?

2 messages · Page 1 of 1 (latest)

dusk obsidian
#

I need to display a star rating in the search engine results of the site. Are there any plugins that allow you to do this?

plain crane
#

Yes, this is possible using a JSON-LD schema. This blog post seems like a good resource for explaining how to setup a rating schema: https://www.matthewedgar.net/review-rating-schema/

You can use this trick/pattern to add a schema to a <script> tag: ```jsx
<script
type="application/ld+json"
set:html={JSON.stringify({
"@context": "http://schema.org",
...
})}
/>