Blogposting – Error – not a known valid target type
-
When checking any post on my site, I’m getting one error that keeps appearing in the google structured data testing tool. I couldn’t find this problem in any of the support posts.
I’m using “blogposting” for posts.
Here’s the section of the post that is generating the error:
“@context”: “https://schema.org”,
“@type”: “BlogPosting”,
“mainEntityOfPage”: {
“@type”: “WebPage”,
“@id”: “http:/website.com/post-name/”The error generated is on the “ID”
Error message: “is not a known valid target type for the identifier property”I definitely don’t know schema, but after reading Schema.org for Blogposting, I’m wondering if the problem is “mainEntityOfPage” which appears to be used for “Articles” and not “blogposting”.
It appears that this should be “mainEntity” instead of “mainEntityOfPage”, but I’m not sure. Here’s the pages I was looking at:
https://schema.org/BlogPosting
https://schema.org/mainEntityI love your plugin! It definitely does a wonderful job of inserting the structured data.
Thank you for your help!
- The topic ‘Blogposting – Error – not a known valid target type’ is closed to new replies.