Review

product snippet search resultThe Review shortcode for WordPress can be used to display review and ratings for products or generic reviews, with proper Schema JSON-Ld code in the source which can be picked up by search engines like Google to display star ratings in the results. This can enhance your search visibility and result in more traffic to your pages. The shortcode can be easily implemented in posts or pages. Check below for example implementations and shortcode documentation:

Review Examples

X3M Shortcodes

X3M Shortcodes

5 / 5
By John Doe

Excellent product with high value. It really helped me create various content sections on my WordPress site.

Design
5 / 5
Performance
5 / 5
Price
5 / 5
Support
5 / 5

Review Shortcodes

Review Shortcode
[x3m-review type="review" name="X3M Shortcodes" author="John Doe" img="https://x3mmedia.com/wp-content/uploads/highlight.jpg" imgsize="30%" publishername="X3M" bestrating="5"]
<strong>Excellent product</strong> with high value.
[review name="Design" rating="5"]
[review name="Performance" rating="5"]
[review name="Price" rating="5"]
[review name="Support" rating="5"]
[/x3m-review]
The shortcode can be used to display a generic review or product review with proper Schema.org code which can enhance your search engine display. Above example displays a generic review box with title, review description and ratings.

Review Documentation

Here are the shortcode option settings available for Review:

Shortcode Settings Details
type=”review” This is used to set type of the review schema to be used. Options available:
– “review” – for generic review/website review (because many WP themes have already included by default Article schema markup, this option may return an invalid setting – check with Google Rich Snippet Testing tool on one page to see if it works. If it returns an invalid markdown, switch to “product” type)
– “product” – for product review
name=”Item Name” This is used to set the name of the item reviewed.
author=”John Doe” This is used to set the name of author making the review. Is set as person.
img=”img link” This is used to set the link for the image of the reviewed item.
imgsize=”30%” This is used to set the image size in respect to the container review.
publishername=”X3M”

optional

This is used to set the name of the publisher, set as an organization.
bestrating=”5″ This is used to set the value for the maximum rating available. Usually set at 5.
price=”100″

optional

This is used to set the price for the product as numeric value (optional value, to be used in conjunction with type=”product”)
currency=”EUR”

optional

This is used to set the price currency for the product as 3 letter value (optional value, to be used in conjunction with type=”product”)
name=”Performance” This is used to set the name of a category review. Category reviews can be set without limit for each product/generic review.
rating=”5″ This is used to set the rating for a specific review category. Only integer numeric are accepted.

Inner content set inside the shortcode tags will be used a review body/description. Inside the main review shortcodes there are also category reviews where individual categories can be set and rated. There is no limit on the number of category ratings to be set. The shortcode will automatically calculate the aggregated ratings based on the values set in these individual category ratings.