-
Notifications
You must be signed in to change notification settings - Fork 26
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
Function name not displayed in google search results #479
Comments
The We could switch up the code reference entry titles to prefix with the reference type, like "Function: _the_function_name() | Developer.WordPress.org" ? That way it wouldn't start with the underscore. @eidolonnight @thetinyl What do you think? |
I don't think it's the underscore that's a problem. Here is an example from the Drupal project docs: _forum_icon | forum.module | Drupal 4.6 | Drupal API This does appear to be happening with other pages though, like _wp_cron. |
Were changes recently made to these pages? Perhaps it just needs to be re-indexed. Everything is looking fine currently. |
Maybe Google becomes confused due to the presence of multiple different titles, thinking it's inconsistent and it needs to figure out the title itself. It seems to extract the page name "Function" (stripping the seemingly wrong string starting with _) from the For example this site: https://wp-kama.com/function/_wp_cron |
There was #399, but it didn't change the title on these pages. One thing I noticed while looking is that Google is changing the title slightly. It has the sections separated by Oh, the suffix is different too- I just caught it because of @benni1516's screenshot (thanks!). It uses that So google is definitely adjusting the title. Maybe it sees the |
I think it strips _wp_cron() - because it is not a human-friendly string (as you said) and then it rather takes the sitename WordPress Developer Resources rather than the domain name because that is also a more human-friendly string. |
Hey, when I google: _wp_filter_build_unique_id
for some reason the function name is not in the title, its just this:
This shouldn't happen, other functions work fine:
I am not sure on which pages this applies but maybe someone has a thought on why this happens?
The text was updated successfully, but these errors were encountered: