Coming to a blog near you, every GSC console will recommend the following improvements:
Although these add absolutely zero value and have no impact on a search result Rich Snippet; google in their wisdom thought it best that any user who has comments on a blog post should be subject to a code Yellow warning like theres an approaching hurricane in your neighbours backyard.
This is has come about through their implantation of DiscussionForumPosting schema. See references for example
Now this unfortunately affects Comments and we need to:
Use generate_get_microdata to add itemtype="https://schema.org/CreativeWork to the comments-area
Description
Coming to a blog near you, every GSC console will recommend the following improvements:
Although these add absolutely zero value and have no impact on a search result Rich Snippet; google in their wisdom thought it best that any user who has comments on a blog post should be subject to a code Yellow warning like theres an approaching hurricane in your neighbours backyard.
This is has come about through their implantation of
DiscussionForumPosting
schema. See references for exampleNow this unfortunately affects Comments and we need to:
generate_get_microdata
to additemtype="https://schema.org/CreativeWork
to thecomments-area
https://github.com/tomusborne/generatepress/blob/513d21a557da677cd02f1a82af5f550f2781618c/inc/structure/comments.php#L226
itemprop="url"
to the<a>
that is returned from theget_comment_author_link()
used here:https://github.com/tomusborne/generatepress/blob/513d21a557da677cd02f1a82af5f550f2781618c/inc/structure/comments.php#L43
References
https://developers.google.com/search/docs/appearance/structured-data/discussion-forum#json-ld%20example
Support topic related to issue: https://generate.support/topic/comment-object-must-be-nested-inside-a-creativework-object-2/#post-67247