Site logo

Archived topic

Conditionally displaying post published or modified date

3 replies · Started by Katja on June 11, 2019

Viewing posts 1–4 of 4

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

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 :)

This archived topic is closed to new replies.