Site logo

[Resolved] Display publication date OR updated date, whichever is later

Home Forums Support [Resolved] Display publication date OR updated date, whichever is later

Home Forums Support Display publication date OR updated date, whichever is later

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2589301
    Chris

    Hi,

    I have an element set up to display the byline and date (By: Author Name &nbsp&nbsp|&nbsp&nbspPost 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

    #2589339
    Leo
    Staff
    Customer Support

    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 🙂

    #2589643
    Chris

    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

    #2589729
    Leo
    Staff
    Customer Support

    Glad to hear 🙂

    I believe the feature was released in Feb 2021:
    https://generatepress.com/introducing-the-gp-theme-builder/

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