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

Schema - Google Improve Item appearance for comments-area and comment_author_link() #588

Open
diggeddy opened this issue Nov 29, 2023 · 0 comments
Labels
feature Features, refactoring, enhancements, improvements triage Awaiting review

Comments

@diggeddy
Copy link
Collaborator

diggeddy commented Nov 29, 2023

Description

Coming to a blog near you, every GSC console will recommend the following improvements:

Screenshot 2023-11-29 at 12 48 26

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:

  1. Use generate_get_microdata to add itemtype="https://schema.org/CreativeWork to the comments-area

<div class="comments-area">

  1. add itemprop="url" to the <a> that is returned from the get_comment_author_link() used here:

<?php printf( '<cite itemprop="name" class="fn">%s</cite>', get_comment_author_link() ); ?>

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

@diggeddy diggeddy added the feature Features, refactoring, enhancements, improvements label Nov 29, 2023
@github-actions github-actions bot added the triage Awaiting review label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features, refactoring, enhancements, improvements triage Awaiting review
Projects
None yet
Development

No branches or pull requests

1 participant