WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
Rich Snippet for thumbs up/thumbs down (5 posts)

  1. dries863
    Member
    Posted 2 years ago #

    Hi,

    I've configured WP-Postratings so a user can give a Thumbs-Up(+1) or Thumbs-Down (-1).

    The Rich Snippet is displayed like this:

    <meta itemprop="url" content="http://www.scribbr.nl/scriptie/voorwoord-van-de-thesis/"><div style="display: none;" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <meta itemprop="bestRating" content="2">
    <meta itemprop="ratingValue" content="1">
    <meta itemprop="ratingCount" content="1">
    <meta itemprop="reviewCount" content="1">

    As you can see bestRating is somehow set to 2 instead of 1. This results in incorrect the RichSnippets.

    How should I config WP-Postratings Thumbs-up/Thumbs-down for the Rich Snippets to display the correct results?

    Thanks :)

    http://wordpress.org/extend/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

    You can change it on line 1227 of wp-postratings.php $ratings_meta .= '<meta itemprop="bestRating" content="'.$ratings_max.'">';

  3. dries863
    Member
    Posted 2 years ago #

    Thanks for the work-around. This will work for now.

    Can fix this "thumbs-up" bug in a future release?

  4. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

    Been pretty busy, but added to my to-fix list

  5. dries863
    Member
    Posted 2 years ago #

    Thanks Lester :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic