Support » Plugin: WordPress SEO Plugin - Rank Math » Thing is not a known valid target type for the itemReviewed property.

  • Resolved desperanza

    (@desperanza)


    Got this error in Google Structured Data Testing Tool when using “Review” as Rich Snippet Type in WP post editor. According to https://nodeflame.com/solved-thing-is-not-a-known-valid-target-type-for-the-itemreviewed-property/ “Since Google’s September 2019 update, you may see this error when trying to validate your review schema:

    Thing is not a known valid target type for the itemReviewed property.

    You may find that your review stars and associated schema are dropping from Google’s SERPs.

    This will affect developers who have manually added rich snippet schema for reviews as well as those using rich snippet plugins (or themes with native rich snippet support). You’ll need to change the target type from Thing for the itemReviewed to one of the following:…”

    Fix?

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • On 16 th Sep 2019, Google changed their rich snippets requirements. The valid types for the itemReviewed property are:

    Book
    ListItem
    Course
    CreativeWorkSeason
    CreativeWorkSeries
    Episode
    Event
    Game
    HowTo
    LocalBusiness
    MediaObject
    Movie
    MusicPlaylist
    MusicRecording
    Organization
    Product
    Recipe
    SoftwareApplication
    it is necessary to change your page itemscope to types likes HowTo

    Obviously HowTo is not yet available in Rank Math. Further, this latest google change may affect many part of how rich snippet being categorized. Maybe it’s time for a plugin update?

    I have the same issue with this page https://gearuphiking.com/teton-sports-scout-3400-backpack-review/

    Should I change to Product instead of a Review type of a schema?

    Thanks!

    Plugin Author Rank Math

    (@rankmath)

    Hello @desperanza

    Thank you for contacting the support.

    We are working on an update, which shall be released soon and will contain a tool to fix the error.

    For now, if you want to convert all those Review Schema types to Product, please use the following code:

    add_filter( 'rank_math/snippet/rich_snippet_review_entity', function( $entity ) {
        $entity['itemReviewed']['@type'] = 'Product';
        return $entity;
    });

    This will change itemReviewed value to Product.

    Hope that helps.

    P.S. The same code can be used by you guys as well, @joomir & @asen85

    life28sk

    (@life28sk)

    Can you please hint me, which file should I add this code in?

    Plugin Author Rank Math

    (@rankmath)

    Hello @life28sk

    This needs to go into your theme’s functions.php file.

    Please take a backup before adding the code.

    Once added, please verify the code, after clearing the cache, here:
    https://search.google.com/structured-data/testing-tool/u/0/

    Hope that helps. Thank you.

    I added the PHP code but it just made more errors when verifying it with Google.

    Plugin Author Rank Math

    (@rankmath)

    Hello @webstop

    Can you please open a new support topic so we can assist you better?

    Also, in an upcoming update, this issue will be tackled. The new version should be released this week. Here’s a KB article on how to fix that issue:
    https://rankmath.com/kb/how-to-fix-review-schema-errors/

    Hope that helps. Thank you.

    @joomir, thanks for the info, I’m going to attempt to fix the same problem that OP had with this.

    What’s your source for this information?

    The strange thing is, this official schema reference page says that ‘Thing’ is the only valid expected type.

    Is Google using different rules in determining what’s valid schema?

    I have tried changing my ItemReviewed from ‘Text’ to ‘Product’.

    In both cases, the console complains that ‘Thing’ is not valid. But ‘Thing’ isn’t even used in my HTML code.

    I think Google is a little confused here.

    Plugin Author Rank Math

    (@rankmath)

    Hello @jwbats

    The rules defined on Schema.org are the global rules which are used by all the Search Engines. Google, in particular, has dropped support for the reviewType Thing in Sept 2019. You can read here:
    https://webmasters.googleblog.com/2019/09/making-review-rich-results-more-helpful.html

    Now coming back to your issue:
    I have tried changing my ItemReviewed from ‘Text’ to ‘Product’.

    Rank Math never added Text in itemReviewed. Please check your theme or the plugins you are using, as one of them is probably adding the Schema data.

    In the Rank Math plugin, we’ve provided an option in Dashboard >> Rank Math >> Status & Tools >> Tools to convert all the existing reviews post to Article. You can use this option to convert the existing reviews. That should fix the issue. You can read more about that here:
    https://rankmath.com/kb/how-to-fix-review-schema-errors/

    Hope that helps. Thank you.

    I have the same issue on 3 different level on my page, can anyone please see:
    https://topitguy.com/black-friday-web-hosting-offers/amp

    Plugin Author Rank Math

    (@rankmath)

    Hello @topitguy

    You have some other SEO plugin active on your site, and thus that error.

    Please contact the plugin author to fix that for you.

    If you decide to move to Rank Math, please open a new support topic and we will be more than happy to assist.

    Thank you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.