[Resolved] Wrap Last Modified Time with

Home Forums Support Wrap Last Modified Time with

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1285604
    litesprint

    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=”” ?

    #1286171
    Leo
    Staff
    Customer Support

    Hi there,

    Have you resolved this?

    The topic is marked as resolved 🙂

    #1286207
    litesprint

    Yes. I tinkered around with PHP until I understood the syntax, and it worked.

    #1286214
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.