WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. davidebabylonia
    Member
    Posted 11 months 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

    https://wordpress.org/plugins/wp-postratings/

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

  2. Lester Chan
    Member
    Plugin Author

    Posted 11 months 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
    Member
    Posted 11 months ago #

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

  4. Lester Chan
    Member
    Plugin Author

    Posted 11 months 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
    property:
    ratingvalue: 4.568987
    reviewcount: 7881

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

    You can try changing:
    $ratings_meta .= '<meta itemprop="ratingCount" content="'.$post_ratings_users.'" />';
    To:
    $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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.