Archived topic
Conditionally displaying post published or modified date
3 replies · Started by Katja on June 11, 2019
Hello GeneratePress Team,
I have found various articles on the forum and on the net that give instructions on displaying a post#s published date or modified date, or even displaying both.
My question: is it possible to conditionally display just one of those dates. I.e display the published date if a post has been published but not updated, and display the modified date if the post has been updated.
Many thanks in advance for any help.
Best wishes,
Roger
Hi there,
I believe this is what you are looking for:
https://generatepress.com/forums/topic/post-updated-date/
Let me know :)
Hello Leo,
thanks for the amazingly fast response.
I tried the given PHP filter and applied the last CSS style rule and it seems to work perfectly.
Many, many thanks.
Best wishes to the team.
Roger
Glad it worked :)