Justin Tadlock 5 years ago Copy `content/content.php` over to your child theme. Name it `post.php` and put it in your child theme’s `/content` folder. Then, just after line 26, which looks like this: ` ‘post_tag’, ‘text’ => __( ‘Tagged %s’, ‘stargazer’ ), ‘before’ => ‘‘ ) ); ?> ` Add this code ` Last updated: ` You can also give similar treatment to any other templates from the `/content` folder. For the calendar, add this to your `style.css` file: ` .entry-published { margin-right: 5px; display: inline-block; } .entry-updated::before { display: inline-block; font-family: ‘Genericons’; font-size: 16px; font-style: normal; font-weight: normal; font-variant: normal; line-height: 1; vertical-align: middle; -webkit-font-smoothing: antialiased; padding-right: 3px; padding-bottom: 2px; content: ‘\f307’; } `
Marcus Tibesar 5 years ago Worked perfectly Justin! Very nice coding and thank you kindly! As you know I have a family archive and the Posts (archives) need to reflect the last time they were updated so, this is very helpful. Marc
Marcus Tibesar 5 years ago Worked perfectly Justin! Very nice coding and thank you kindly! As you know I have a family archive and the Posts (archives) need to reflect the last time they were updated so, this is very helpful. Marc
I need to add the date that each Post was last updated.
I would like to add this just after the ‘Posted in’ and ‘Tagged’ at the bottom of each Post.
If possible I would also like ‘Last Updated’ to be proceeded with the little calendar icon.
Example:
Posted in News, Photos
Tagged 2012-06-30, Alexandria Minnesota, Arrow Wood Resort
Last Updated 2015-05-15
Thank you so very much!
Copy `content/content.php` over to your child theme. Name it `post.php` and put it in your child theme’s `/content` folder.
Then, just after line 26, which looks like this:
`
‘post_tag’, ‘text’ => __( ‘Tagged %s’, ‘stargazer’ ), ‘before’ => ‘
‘ ) ); ?>
`
Add this code
`
`
You can also give similar treatment to any other templates from the `/content` folder.
For the calendar, add this to your `style.css` file:
`
.entry-published { margin-right: 5px; display: inline-block; }
.entry-updated::before {
display: inline-block;
font-family: ‘Genericons’;
font-size: 16px;
font-style: normal;
font-weight: normal;
font-variant: normal;
line-height: 1;
vertical-align: middle;
-webkit-font-smoothing: antialiased;
padding-right: 3px;
padding-bottom: 2px;
content: ‘\f307’;
}
`
Worked perfectly Justin!
Very nice coding and thank you kindly!
As you know I have a family archive and the Posts (archives) need to reflect the last time they were updated so, this is very helpful.
Marc
Worked perfectly Justin!
Very nice coding and thank you kindly!
As you know I have a family archive and the Posts (archives) need to reflect the last time they were updated so, this is very helpful.
Marc