[Resolved] How to add "Last Updated" verbiage.

Home Forums Support [Resolved] How to add "Last Updated" verbiage.

Home Forums Support How to add "Last Updated" verbiage.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1107415
    Michael

    I know this is basic, but I’m a coding dunce. I changed the the date from published to last updated using this guide: https://docs.generatepress.com/article/generate_post_date_output/#only-show-updated-date

    It worked like a charm. Can you give me the code to simply add the words “Last updated..” just prior to the date on the post?

    #1107724
    David
    Staff
    Customer Support

    Hi there,

    edit this line of the code:

    return sprintf( '<span class="posted-on">%s</span> ',

    to this:

    return sprintf( '<span class="posted-on">Last Updated: %s</span> ',

    #1113659
    Michael

    Thanks man, worked like a charm.

    #1114259
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.