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

Google ignoring the function descriptions, displaying inaccurate information in search results. #524

Closed
dd32 opened this issue Jul 8, 2024 · 0 comments · Fixed by #536
Closed
Labels
priority: high [Type] Bug Something isn't working

Comments

@dd32
Copy link
Member

dd32 commented Jul 8, 2024

It appears that Google is often ignoring the page descriptions, as it's decided that it's not an accurate representation of the page contents.

For example of this, wp_login_url:
Screenshot 2024-07-08 at 4 38 04 PM

Emails login credentials to a newly-registered user.

Nope, doesn't do that.

Checks if a user is logged in, if not it redirects them to the login page.

Nup, doesn't do that either.

Displays the Log In/Out link

Ha, no, I mean if you echo this you'll get a Log in link?

The provided description is actually of wp_new_user_notification(), auth_redirect(), and wp_loginout() functions which are listed in the Used by section.

We should apply a nosnippet class to all of the Related items on the page, and potentially the User Contributed Notes as well, to force Google (and others..) to only use relevant parts of the page as the excerpt.

See https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag#data-nosnippet-attr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high [Type] Bug Something isn't working
1 participant