Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid object type for field "itemReviewed" #141

Open
avrahamcornfeld opened this issue Feb 11, 2020 · 14 comments
Open

Invalid object type for field "itemReviewed" #141

avrahamcornfeld opened this issue Feb 11, 2020 · 14 comments

Comments

@avrahamcornfeld
Copy link

avrahamcornfeld commented Feb 11, 2020

Google Search Console gives this error: Invalid object type for field "itemReviewed"
You can see it here: https://search.google.com/test/rich-results?utm_campaign=devsite&utm_medium=microdata&utm_source=review-snippet&id=V_vyTdviz0t83nIrXJQN3Q

@udotelaar
Copy link

Same here!

@lesterchan
Copy link
Owner

There is nothing I can do actually. I would recommend disable Rich Text Snippet. You can read more details here https://webmasters.googleblog.com/2019/09/making-review-rich-results-more-helpful.html or discussion here which took place few months back https://wordpress.org/support/topic/new-google-requirements-for-structured-data/

@tombauer-cr
Copy link

Ok.
(How) can we disable Rich Text Snippets without deinstall wp-postratings?
Even google not like the article rating - our users do.

@lesterchan
Copy link
Owner

Under WP-Admin -> Ratings -> Rating Options.

@rogervanwile
Copy link

@lesterchan Wouldn't it be a solution to add a select field in the setting where you can globally select the type of the articles on this page, or a additional setting in the article page?

For example I need the type "Recipe" for a food blog. This would be a great solution.

@lesterchan
Copy link
Owner

lesterchan commented Feb 16, 2020

@rogervanwile in an ideal world yes, but it is too much work for me right now. Feel free to help and send back a pull request if you did.

Having said that, it still does not solve the problem. If you are not doing a site on Recipe, but still choose to use Recipe so that the ratings can display in Google. If Google found out, your site might be blacklisted or some sort.

@CabalTC
Copy link

CabalTC commented Feb 17, 2020

Is there anything we can do to avoid disabling Rich Text Snippets (RTS)? Be able to show the ratings in Google is one of the main reasons on using this kind of rates...

In my case, half of my posts are book reviews (that uses Book schema) that works fine with rich snippets (data is correct), but the other half that use Article schema give this error.

So... Is there a way to disable RTS only in "article" schema posts? Something I can insert in the PHP that assigns the proper schema to each post.

@lesterchan
Copy link
Owner

@CabalTC Good point, I added a new wp_postratings_disable_richsnippet, 2a944ff, you can download and replace https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php on your host to see if it works.

@CabalTC
Copy link

CabalTC commented Feb 18, 2020

Tested on a live web. It works fine for the non-disabled ones (books as https://cabaltc.com/el-misterio-de-salems-lot) and I think half work for the Articles (https://cabaltc.com/pedir-que-te-hagan-una-resena) where rich snippets are disabled via code.

Problem is that, if you disable Rich Snippets from the customizer (old way), all Schema is removed (checked in Google's Schema Validator), but if you do so using the new filter, Schema is defined BUT all data is empty, so there are several warnings and errors displayed in the schema validator.

Do you need more info?

PS: code that use the new filter is in place, so you can check the URL's schemas if you want.

@lesterchan
Copy link
Owner

I am not sure how do u disable via customizer? I don't remember supporting it

@CabalTC
Copy link

CabalTC commented Feb 18, 2020 via email

@lesterchan
Copy link
Owner

Oh that is the options page. Okie I missed out one place, you can try downloading the file again.

@CabalTC
Copy link

CabalTC commented Feb 19, 2020

Works fine! Now it has the same result to remove GRS with the options page and the new filter. Thank you!

@LuccaR21
Copy link

Hola. Alguien pudo solucionarlo? Sigue arrojando error estado deshabilitado: https://irrigadorbucalone.com/cual-es-el-mejor-irrigador-dental

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants