Archived topic
Display publication date OR updated date, whichever is later
3 replies · Started by Chris on March 30, 2023
Hi,
I have an element set up to display the byline and date (By: Author Name   |  Post Date)
What I'd really like to do is display the post date when an article is first published.
But when it's updated on a day that's not the same as the Post Date (so I can make corrections if needed right after publishing), I want to change that to "updated (Update Date)".
How can I go about doing that?
Thanks,
Chris
Hi Chris,
Are you using the block element with dynamic data?
If so the Replace with update date toggle option should be what you are looking for:
https://docs.generatepress.com/article/dynamic-data/#post-date
Let me know :)
Sweet! Works perfect!
Is that a pretty new feature? I'd swear I had looked for this late last year and that option wasn't there,
Chris
Glad to hear :)
I believe the feature was released in Feb 2021:
https://generatepress.com/introducing-the-gp-theme-builder/