[wp-meta] [Making WordPress.org] #7410: Show modified date in google results
Making WordPress.org
noreply at wordpress.org
Wed Jan 17 07:50:41 UTC 2024
#7410: Show modified date in google results
---------------------------+---------------------
Reporter: benniledl | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Developer Hub | Resolution:
Keywords: |
---------------------------+---------------------
Changes (by dd32):
* keywords: 2nd-opinion =>
Comment:
I suspect this is google picking up the first `<time>` element on the
page.
The sitemap is correct:
https://developer.wordpress.org/sitemap-2.xml
> 1227
https://developer.wordpress.org/reference/functions/get_the_modified_date/
2023-11-08T01:35:16Z
And the only place the 2014 date shows is:
{{{
$ curl -is
https://developer.wordpress.org/reference/functions/get_the_modified_date/
| grep 2014
<div class="wp-block-post-date"><time
datetime="2014-04-25T06:04:56+00:00">April 25, 2014</time></div>
}}}
If it's indeed using the `<time>` element, maybe we need to add a `rel`
attribute or something to it, such that it picks up the right one.
{{{
$ curl -is
https://developer.wordpress.org/reference/functions/get_the_modified_date/
| grep '<time'
<div class="wp-block-post-date"><time
datetime="2014-04-25T06:04:56+00:00">April 25, 2014</time></div>
<div class="wp-block-post-date__modified-date wp-block-post-date"><time
datetime="2023-11-08T01:35:16+00:00">November 8, 2023</time></div>
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7410#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list