Site logo

[Resolved] Show Updated Date – if missing, then Published date

Home Forums Support [Resolved] Show Updated Date – if missing, then Published date

Home Forums Support Show Updated Date – if missing, then Published date

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2511910
    Rick

    Hi,

    I’m using a page hero to show post meta data. One of the things I like is to show the ‘Updated on 28 jan 2023’ line.

    This works fine. But when I freshly publish a post, it does not have an updated date but only a publish date. The publish date than does not show and the meta data returns: Updated On … (empty)

    I would like to show the update date when available, and only the publish date when update date does not exist.

    Can we achieve this using a dynamic text type in a heading block?

    I saw below post but it does not make use of the blocks

    https://generatepress.com/forums/topic/show-published-date-if-modified-date-is-not-available/

    I current experience this at: https://gorilla.bi/power-query/fiscal-calendar/

    Thank you!
    Rick

    #2511971
    David
    Staff
    Customer Support

    Hi there,

    if you add a Headline block and in the sideabar settings, activate its dynamic data and set its CONTENT SOURCE to Post Date, leave the DATE TYPE as Published and toggle the Replace with updated date option

    #2511983
    Rick

    Worked a charm. Thank you, very happy with the support 🙂

    #2512239
    David
    Staff
    Customer Support

    Glad to hear that !! 🙂

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