Archived topic
How to add "Last Updated" verbiage.
3 replies · Started by Michael on December 17, 2019
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?
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> ',
Thanks man, worked like a charm.
You're welcome