Structured Data Issue Fixed in KK Star Ratings Plugin

KK Star Ratings is a very famous WordPress plugin.  This plugin provides fastest way to aggregate star review in google SERPs using JSON-LD structured data. That is why, more than 90 thousand webmasters are using this awesome tool for their WordPress Powered websites.

After latest Google Core update (September 2019), KK Star Ratings plugin structured data had stopped aggregating review ratings into SERPs.

Structured Data Markup Solution

After September 2019 updates, Google had started sweeping out all web pages or products reviews data from search results due to old markup data.  So, KK Star Ratings development team has released latest version (4.x ) of plugin today (10-28-19). So that webmaster can resolve the structured data issue in the plugin.

Now, at Rich Snippet tab of plugin settings page, we have text box where we can add our own JSON-LD markup data. We are allowed to use 4 variables in our customized structured data markup. [title] Post title, [score] Average post ratings, [count] Number of votes casted and [best] Total amount of stars.

How to add JSON Structured data markup data in Plugin

KK Star Ratings Rich Snippet Tab

There are three methods available on Schema.org to add markup data into web pages, as Microdata, RDFa and JSON-LD. Last one JSON is latest and fastest method to add markup data into page.

So, to add JSON code into KK Star Rating plugin, Go to KK Star Rating Settings page and Click on Rich Snippet Tab and copy the following JSON code and past into text box, to aggregate star reviews. Don,t forget to press Save Settings button.


{
    "@context": "https://schema.org/",
    "@type": "CreativeWorkSeries",
    "name": "[title]",
    "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "[score]",
        "bestRating": "[best]",
        "ratingCount": "[count]"
    }
}

…. and if you find worstRating object issue/error add the following code.

{
    "@context": "https://schema.org/",
    "@type": "CreativeWorkSeries",
    "name": "[title]",
    "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "[score]",
        "bestRating": "[best]",
        "ratingCount": "[count]",
        "worstRating": "1"
    }
}

Now, go to Google Structured Data Testing Tool and test your page.

RDFa FIX for Rich Snippet

Caution: use RDFa method at your own risk. Structured testing tool is passing it but I am not sure about SERPs.

At Schema.org we can find RDFa method of aggregating star reviews into web pages. KK Star Ratings allow us to add only JSON data in Rich Snippet tab. So, we have converted RDFa markup data into JSON-LD markup data. Copy and paste following code in Rich Snippet tab of KK Star Rating plugin, as we describe above.

{
  "@context": {
    "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
    "v": "http://rdf.data-vocabulary.org/#",
    "xsd": "http://www.w3.org/2001/XMLSchema#"
  },
  "@graph": [
    {
      "@id": "[title]",
      "v:best": "[best]",
      "v:value": "[score]"
    },
    {
      "@id": "https://www.EXAMPLE.com/",
      "@type": "v:Review-aggregate",
      "v:count": "[count]",
      "v:itemreviewed": "EXAMPLE.com",
      "v:rating": {
        "@id": "[title]"
      }
    }
  ]
}

Note: Change EXAMPLE in code with your website name.

Again go to Google Markup Data Testing Tool and test your page.