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

    Hi
    I am looking for sth like the code I found here: https://kriesi.at/support/topic/blog-page-post-issues/#post-1031911
    but to display the date of the last update of an entry/post. Unfortunatelly the codes I have found on other pages, need to be placed in the loop. Since I use custom page template for posts, and I want the date to be visible between post picture and the main text, I assume the best solution would be to use a shortcode placed in the post. Can somebody help?

    #1049771

    Hey Autostopowicz,

    Thank you for using Enfold.

    You can create a custom shortcode to display the post meta info such as the date, comments etc.

    // https://kriesi.at/support/topic/post-using-advanced-editor-how-to-insert-post-meta-info-title-date-etc/#post-466158

    Place the shortcode callback in the functions.php file and then put the shortcode in a text or code block.

    Best regards,
    Ismael

    #1050112

    Hey Ismael

    It wasn’t exactly what I was looking for, but I edited the code from my previous post to use get_the_modified_date() and it works.
    Didn’t now it is so simple (sometimes):)
    Thread can be closed – thanks.

    Best regards
    A.

    #1050310

    Hi,

    Great, glad you found a solution and thanks for the feedback. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘The "last updated" date in post’ is closed to new replies.