Archived topic
Show the “Updated” Post Date on single page post
11 replies · Started by Immi on August 14, 2018
Hello there, I want to display ‘last updated’ date on single page/post and on home page seen by normally date format like 14 august 2018.
My css is below
.posted-on .updated {
display: block;
}
.posted-on .published {
display: none;
}
.posted-on .updated:before {
content: "Updated: ";
}
Hi there,
Can you try modifying the date setting here?
https://codex.wordpress.org/Settings_General_Screen
Let me know if this helps :)
Hello Leo, i want to display last updated date on single post/page page view. and post on published display on homepage view.
Ok so you basically want the solution above but only apply to single post?
If so try this instead:
.single .posted-on .updated {
display: block;
}
.single .posted-on .published {
display: none;
}
.single .posted-on .updated:before {
content: "Updated: ";
}
not working for me
Think the quotation was wrong.
Can you try it again?
https://generatepress.com/forums/topic/show-the-updated-post-date-on-single-page-post/#post-648666
thank you so much Leo
No problem :)
Hi Leo
I have used the PHP and CSS code for showing the updated date. The code I used is as shown here https://woorkup.com/generatepress-review/
This is for my site SoftwareTestingHelp .com
BUT this updated date is showing ONLY on POSTS. I want to show the same on PAGES as well.
Can I know what is wrong here?
Have you tried this here?
https://docs.generatepress.com/article/show-the-updated-post-date/
If this doesn't work any chance you can open a new topic?
Thanks!
Yes already tried that but it showing the updated date on only POSTS not on PAGES. I am creating new ticket.
Thanks :)