Archived topic
Wrap Last Modified Time with
3 replies · Started by litesprint on May 15, 2020
I have a situation with a relatively old site which displays the last modified time as plain text: "Last Modified: 15th May, 2020" - as a result, Google doesn't display the date on SERPs. I've seen that sites that do get their dates also visible on SERPs have those wrapped in <time datetime=""></time> tags.
Is there a WordPress function or something that can output the exact last modified time (down to the exact second) that can be put inside the quotes of datetime="" ?
Hi there,
Have you resolved this?
The topic is marked as resolved :)
Yes. I tinkered around with PHP until I understood the syntax, and it worked.
Glad to hear :)