Home › Forums › Support › Adding last updated in the element code This topic has 5 replies, 2 voices, and was last updated 3 years, 5 months ago by Leo. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts November 14, 2020 at 11:53 am #1531432 aziz Hi team, please help I was trying to update the code to add ” last updated date ” after the author name. this is the code I used : ——————————– <h1> {{post_title}} </h1> <div class “hero-meta” {{post_author}} / } .posted-on .updated:before { content: “Last updated: “; } ——————————– but i didn’t work . please send me the correct code if possible Aziz November 14, 2020 at 3:56 pm #1531550 LeoStaff Customer Support Hi there, Does this help? https://docs.generatepress.com/article/show-the-updated-post-date/#show-the-%E2%80%9Cupdated%E2%80%9D-post-date-in-header-element November 15, 2020 at 8:20 am #1532411 aziz Hi Leo, No, unfortunately, I tried that. it works fine in posts only. I have this one ” {{post_date}} ” But it will mention only the original date . Thanks Aziz November 15, 2020 at 11:00 am #1532541 LeoStaff Customer Support Not sure if I fully understand. Did you create a shortcode for [modified_date] as the article here? https://docs.generatepress.com/article/show-the-updated-post-date/#show-the-%E2%80%9Cupdated%E2%80%9D-post-date-in-header-element Let me know if I’m missing something here. November 15, 2020 at 11:57 am #1532593 aziz Hi Leo, No sorry I didnt add that shortcode yet , where to add ? in the element area ? Thanks Aziz November 15, 2020 at 2:46 pm #1532705 LeoStaff Customer Support The snippet can be added using one of these methods: Adding PHP: https://docs.generatepress.com/article/adding-php/ Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In