Title: itemtype, Product
Last modified: August 22, 2016

---

# itemtype, Product

 *  Resolved [eclassifiedads.org](https://wordpress.org/support/users/eclassifiedadsorg/)
 * (@eclassifiedadsorg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/)
 * I’m using the plugin for blog post ratings but the itemtype is showing as Product
   which for Blog posts is not acceptable under Google guidelines. How can I fix?
 * My URL is: [http://www.eclassifiedads.org/workout-fitness-fun-just-30-minutes/](http://www.eclassifiedads.org/workout-fitness-fun-just-30-minutes/)
 * [https://wordpress.org/plugins/yet-another-stars-rating/](https://wordpress.org/plugins/yet-another-stars-rating/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5334980)
 * Open file yasr-functions inside the lib directory and on line 322 change this
 * `$div_1 = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/
   Product\">";`
 * with the needed itemtype.
 * In future I will add an option to choose it
 * Best,
    Dario
 *  Thread Starter [eclassifiedads.org](https://wordpress.org/support/users/eclassifiedadsorg/)
 * (@eclassifiedadsorg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5334999)
 * I changed it to:
 * $div_1 = “<div class=\”yasr_schema\” itemscope itemtype=\”[http://schema.org/Review](http://schema.org/Review)\”
   >”;
 * And I’m getting this error in the Structured Data Testing Tool:
    Error: Incomplete
   microdata with schema.org.
 *  Thread Starter [eclassifiedads.org](https://wordpress.org/support/users/eclassifiedadsorg/)
 * (@eclassifiedadsorg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335000)
 * For me the solution was to change this name property from itemprop=”name” to 
   itemprop=”about” on line 323.
 * That cleared the error. But I’m not sure if that was the best solution, I await
   your input.
 *  Thread Starter [eclassifiedads.org](https://wordpress.org/support/users/eclassifiedadsorg/)
 * (@eclassifiedadsorg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335008)
 * the itemprop=”about” on line 323 is pulling the TITLE, I need it to pull the 
   AUTHOR, what do I need to change?
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335014)
 * From line 322 to line 331 remove old code and paste this
 *     ```
       $div_1 = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/Product\">";
       $title = "<span itemprop=\"name\">". get_the_title() ."</span>";
       $author = __( ' written by ' , 'yasr' )  . "<span itemprop=\"author\">" . get_the_author() . "</span>";
       $span_1 = "<span itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">";
       $rating = __( ' average rating ' , 'yasr' ) . "<span itemprop=\"ratingValue\">" . $average_rating . "</span>/<span itemprop=\"bestRating\">5</span>";
       $n_ratings = " - <span itemprop=\"ratingCount\"> " . $visitor_rating['votes_number'] . "</span>" . __(' user ratings', 'yasr');
       $end_span_1 = "</span>";
       $end_div_1 = "</div>";
   
       $schema = $div_1 . $title . $author . $span_1 . $rating . $n_ratings . $end_span_1 . $end_div_1;
       ```
   
 * change div1 with what you need
 *  Thread Starter [eclassifiedads.org](https://wordpress.org/support/users/eclassifiedadsorg/)
 * (@eclassifiedadsorg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335051)
 * Done. Changed div1 to Review and Title ietmprop from name to author. No errors…
   BUT in the Structured Data Testing Tool, the stars are not showing up now. Thats
   not good 🙁
 * [http://www.eclassifiedads.org/workout-fitness-fun-just-30-minutes/](http://www.eclassifiedads.org/workout-fitness-fun-just-30-minutes/)
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335053)
 * first line is wrong, must be like this
 * $div_1 =`<div class=\"yasr_schema\" itemprop=\"review\" itemscope itemtype=\"
   http://schema.org/Review\">`
 *  Thread Starter [eclassifiedads.org](https://wordpress.org/support/users/eclassifiedadsorg/)
 * (@eclassifiedadsorg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335055)
 * Did that – still no stars in in the Structured Data Testing Tool.
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335056)
 * Sorry, the review itemtype can’t be used along with aggregate rating.
 * See this page [http://schema.org/Thing](http://schema.org/Thing) you can choose
   what is best for you in the “More specific Types” section
 *  Thread Starter [eclassifiedads.org](https://wordpress.org/support/users/eclassifiedadsorg/)
 * (@eclassifiedadsorg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335057)
 * I changed it to BlogPosting, I think that is most accurate. When you update the
   plugin can you include the BlogPosting itemtype please.
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335058)
 * Not from the next release (0.5.8), but however I will add the an option to choose
   wich snippet use asap
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335161)
 * I’ve just released version 0.5.9
    You can choose the itemtype while writing a
   post or page: if you want to use BlogPosting, select “Other”

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘itemtype, Product’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-stars-rating/assets/icon-256x256.png?rev=1525329)
 * [YASR - Yet Another Star Rating Plugin for WordPress](https://wordpress.org/plugins/yet-another-stars-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-stars-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-stars-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-stars-rating/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [dudo](https://wordpress.org/support/users/dudo/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/itemtype-product/#post-5335161)
 * Status: resolved