Site logo

Archived topic

Show the “Updated” Post Date on single page post

11 replies · Started by Immi on August 14, 2018

Viewing posts 1–12 of 12

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: ";

}

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

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?

Yes already tried that but it showing the updated date on only POSTS not on PAGES. I am creating new ticket.

Thanks :)

This archived topic is closed to new replies.