You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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,
![Screenshot 2024-07-08 at 4 38 04 PM](https://cdn.statically.io/img/private-user-images.githubusercontent.com/767313/346453015-6c103295-a8dc-4c63-bb28-aee7c033614c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5MjM2MDEsIm5iZiI6MTcyMjkyMzMwMSwicGF0aCI6Ii83NjczMTMvMzQ2NDUzMDE1LTZjMTAzMjk1LWE4ZGMtNGM2My1iYjI4LWFlZTdjMDMzNjE0Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwNlQwNTQ4MjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYTI3Mzk4MTkwYWQ1NmM4YmFlMTQ0YTM3YzQ4OGM5NDBjYTE1NWZmNmQ1YTgwY2NhMWQzYzY5NTk0NGQzZGQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.HhrdAA0reP14vvuJ6O3ZPhhfPAmdhmOczAkfQh4q8jQ)
wp_login_url
:Nope, doesn't do that.
Nup, doesn't do that either.
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()
, andwp_loginout()
functions which are listed in theUsed by
section.We should apply a
nosnippet
class to all of theRelated
items on the page, and potentially theUser 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
The text was updated successfully, but these errors were encountered: