[resolved] Google Structured Data Testing Tool doesn't show stars (4 posts)

  1. davidebabylonia
    Posted 2 years ago #

    I have the similar problem of some other member, but no matter the star are working fine on post, they are not showing in Structured Data Testing Tool snippet:

    See here

    Is it a capitalization issue on the "Property"?

    Webmaster tool shows i.e. "bestrating" while on Schema.org the property is "bestRating" with R capitalized

    See on schema.org


    I saw in the page code that they are actually correct, so why?

  2. Lester Chan
    Plugin Author

    Posted 2 years ago #

    I don't think the capitalize/lowercase matter, but for your case, they are other structured data as well besides rating, so I am guessing those are showing instead of the ratings.

    I am not too sure whether it will show both recipe data and ratings data in Google or just 1. Not really an expert in that area.

  3. davidebabylonia
    Posted 2 years ago #

    Please see this Google search results, it should show, at least when testing the structured data.

  4. Lester Chan
    Plugin Author

    Posted 2 years ago #

    Hmm the only thing I can thing of is the ratings name for recipe is used differently.

    For the example http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fallrecipes.com%2Frecipe%2Fbanana-banana-bread%2F

    type: http://schema.org/aggregaterating
    ratingvalue: 4.568987
    reviewcount: 7881

    For WP-PostRatings
    type: http://schema.org/aggregaterating
    bestrating: 5
    ratingvalue: 5
    ratingcount: 2

    You can try changing:
    $ratings_meta .= '<meta itemprop="ratingCount" content="'.$post_ratings_users.'" />';
    $ratings_meta .= '<meta itemprop="reviewcount" content="'.$post_ratings_users.'" />';

    in wp-postratings.php to see if it works.

    If it doesn't, you have to play around with the name since I am not an expert it this area

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.