WordPress.org

Forums

Mage Reviews
[resolved] Some suggestions (4 posts)

  1. arulpr
    Member
    Posted 1 year ago #

    I looked at your plugin as I was in the process of creating a review website. Well done with keeping it simple.

    Issues
    1. In ratings CSS images are loaded from absolute URL's make it relative to avoid conflict. Change rating image url to ('../img/star.0.png')

    2. Using general function names. It's not good practice to use names such as extendcomment etc.. using something more unique. This will ensure you don't have clash with other plugins.

    3. Check your schema.org settings. It's not according to spec. See here http://microformats.org/wiki/hreview-aggregate. Tool used to check . Microformats chrome extension.

    http://wordpress.org/plugins/mage-reviews/

  2. arulpr
    Member
    Posted 1 year ago #

    I did read up on schema org and this should be the aggregate format you need to use to display them properly

    <div itemscope itemtype="http://schema.org/Review">
    <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">

    <meta itemprop="worstRating" content="1"><span itemprop="ratingValue">o</span> / <span itemprop="bestRating">5</span> stars</div>
    </div>

    Obviously need to replace Best rating and rating value with respective variables

  3. Maximilian Ruthe
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Arulpr,
    thank you very much for the suggestions and am glad you like it.
    I just published 1.0.7 which includes your suggestions, however the schema.org markup requires an extra step. Here is an example local business that you can test with the rich snippet tester.
    The difference is that the "Review" Itemscope, is contained within a reviewable item. In this case, the whole article contains the reviews, which is marked up as:
    <article itemscope itemtype="http://schema.org/LocalBusiness">
    ...
    <div itemscope itemtype="http://schema.org/Review">...</div>
    ...
    </article>

    Now, the plugin contains even more markup, but requires wrapping reviews in a valid Itemscope (Article, Restaurant, LocalBusiness, etc.).
    Hope that helps,
    Cheers

  4. arulpr
    Member
    Posted 1 year ago #

    I don't have vast knowledge about schema.org myself. I guess this tool is handy http://microformats.org/code/hreview/creator

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Mage Reviews
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.