Archived topic
Show the date at the end of the post
3 replies · Started by Simon on November 8, 2021
I want show the date (last updated date or published date) at the end of the post, not below the title.
Thanks to some other support topics I was already able to style the date with additional CSS
/* Display updated date */
.posted-on .updated {
display: inline-block;
margin-right: 1em;
}
.posted-on .updated + .entry-date {
display: none;
}
/*Add date prefixes */
.posted-on .updated:before {
content: 'Zuletzt aktualisiert am ';
}
.posted-on .entry-date:before {
content: 'Zuletzt aktualisiert am ';
}
Now I want to show this at the end of the post. How can I do that? Under Layout > Blog > Single I can only click show or not show.
Hi there,
this doc provides the PHP Snippet you need to add the date in the footer meta:
https://docs.generatepress.com/article/generate_footer_entry_meta_items/
Awesome, it worked perfectly!
Glad to be of help!