Google ignoring the function descriptions, displaying inaccurate information in search results.
dd32 opened this issue · 0 comments
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
:
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