问题
I tried to add Schema.org markup on my site, with the type Article
, then adding some properties on it, when checked on Google Structured Data Testing Tool, it said required certain properties, like dataPublished
, author
etc.
I can add some properties to meet the requirement, but not all of them. Is this requirement real? I mean really required by the rule? Or just Google rule? I came across this page https://developers.google.com/search/docs/data-types/articles It said for non-AMP, those requirements are only optional (ignored or recommended, non of them said required for non-AMP).
This get me confused, anyone knows about this, what's your opinion? Do Google Structured Data Testing Tool already include AMP requirement?
回答1:
These are required/recommended for getting one of Google’s search features.
If you don’t want that Google search feature, or if you can’t provide all necessary properties, you can keep everything like it is and ignore the errors and warnings.
Related answers
- Should Schema.org dateModified have some default value if not available?
- Schema.org/Microdata markup for list of recent posts without providing “author” / “publisher”?
- Do I have to create new visible elements to abide by Google's Microdata Schema.org requirements?
- Omitting price property for sold products?
- Use Schema.org for Article without image property?
- Image missing and required - Wordpress AMP Structure doesn't add Image attribute
On Webmasters SE:
- Schema.org BlogPosting and image required
- Is it mandatory to have rich snippets for AMP pages?
来源:https://stackoverflow.com/questions/41414163/google-requiring-certain-properties-for-certain-types-when-adding-schema-org-mar