Archived topic
Published and updated date and time
8 replies · Started by Juan Ramón on February 11, 2022
Hello, friends
Although this is something I have found in many threads I have not been able to find the code to add date and time of posting like this:
Posted: date at: time / Updated: date at:time
Just this, with Elementor it was very simple, but I've switched to GenertateBlocks :P
Can you give me a hand with that?
Thanks
Hi Juan,
It's very simple with GP as well, you can use a block element - post meta template:
https://docs.generatepress.com/article/block-element-post-meta-template/
Make sure GenerateBlocks plugin is installed and activated :)
Hi, Ying
Yes, I've just done it following this tutorial, but I haven't managed to add the time.
Follow David's instruction here:
https://generatepress.com/forums/topic/adding-time-to-publish-date-in-blog-entries-and-excerpts/#post-2024264
Argh...
I'm sure I'm doing something wrong or something is preventing the time from being displayed (it only shows the date and not the time).
I'll keep investigating, I don't want to take up any more of your time.
Tnx
Oh no, remove the options where I marked:
https://www.screencast.com/t/fHYjt0C591Zk
The date format setting is here:https://www.screencast.com/t/VUy12KvYP
Great!
Yes, now it's perfect. I just have to adjust the formatting.
The mission was really simple and I was very dumb.
Thank you very much, Ying. You are the best.
Regards
Did you just drew the little man in the screenshot?
That's very cute :)
Glad to help!
Tnx
Yes, that's what I do.
Thanks again.