Can I use the Rating Form plugin with SNIP?

Mohamed asked if it’s possible to use Rating Form plugin together with SNIP.

The answer to the above question is YES (at least for normal post as pages). And here is how it works.

The Rating Form Plugin saves the average rating as well as the number of all ratings into WordPress post meta table. So you can use this data with the “Post meta” field type.

An example aggregateRating would look like this:

aggregateRating using SNIP and the Rating Form Plugin

Here is the description:

  1. For the ratingValue use the “Post meta” field type. Enter rf_average into the “Field Value” textbox.
  2. For the bestRating property, use “Direct text input”. Enter the number of the best rating you’re using (depending on the way you set up the Rating Form plugin).
  3. For the reviewCount use the “Post meta” field. Enter rf_total.
  4. For the worstRating property, use “Direct text input” and enter the number of the worst rating that is possible (depending on how you set up the Rating Form plugin).
  5. For the ratingCount, use the “Post meta” field, too. Here you can also enter rf_total.

Important: Note that either reviewCount or ratingCount is needed (depending on where you’ve added the aggregateRating property.

Also see: How can I create a rating to a schema thing?