[Resolved] Conditionally displaying post published or modified date

Home Forums Support [Resolved] Conditionally displaying post published or modified date

Home Forums Support Conditionally displaying post published or modified date

  • This topic has 3 replies, 2 voices, and was last updated 2 years ago by Leo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #926174
    Katja

    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

    #926203
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this is what you are looking for:
    https://generatepress.com/forums/topic/post-updated-date/

    Let me know ๐Ÿ™‚

    #926217
    Katja

    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

    #926218
    Leo
    Staff
    Customer Support

    Glad it worked ๐Ÿ™‚

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