- This topic has 9 replies, 2 voices, and was last updated 7 years, 2 months ago by Pratik.
-
AuthorPosts
-
December 31, 2016 at 7:27 am #106166AshleyParticipant
I’ve been working on going back and freshening up some old posts on my site (http://bigflavorstinykitchen.com/) and would like to display the date that each post was last modified in addition to the original publish date. Do I need custom CSS to display last modified?
Thank you!
December 31, 2016 at 6:08 pm #106186PratikKeymasterHi Ashley,
I checked the site and it has updated date. Did you solve it?
Regards,
PratikDecember 31, 2016 at 8:23 pm #106194AshleyParticipantNo – I don’t see an updated date anywhere. Here’s an example of one post that was originally published on Dec 24, 2012 but was updated yesterday (Dec 30, 2016): http://bigflavorstinykitchen.com/ricotta-cookies/
January 1, 2017 at 10:36 am #106224PratikKeymasterHi @Ashley,
Ok I get it now. For that, you need to create a child theme. For child theme details, view http://catchthemes.com/blog/create-child-theme-wordpress/
Then in child theme’s functions.php file, add in following code: http://pastebin.com/bjTHFaVv.
Regards,
PratikFebruary 3, 2017 at 8:47 am #108702AshleyParticipantThis seemed to have worked, but there are a lot of posts that have “last updated” dates that are incorrect. An example this post that shows “Last Updated December 18, 2016”, yet when I go into the post and revisions, the current revision is from “3 years ago (31 May @ 20:55)”. The post was originally published on Jun 1, 2014.
The date December 18, 2016 seems to be showing up on a lot of the posts, but not all of them.
Any thoughts on what’s going wrong here? Much appreciated!
February 3, 2017 at 9:09 am #108703PratikKeymasterHi @Ashley,
I am sorry but it will be difficult for me to debug this issue without any codes or admin access. And that falls beond the scope of this support forum.
Maybe you can try and update the post and see if the new updated date takes effect or not.
Regards,
PratikFebruary 3, 2017 at 6:57 pm #108735AshleyParticipantThanks for the response, Pratik. Have a great weekend!
February 4, 2017 at 9:06 am #108784PratikKeymasterFebruary 4, 2017 at 10:44 pm #108815AshleyParticipantIt’s been sorted out. Unfortunately, a plugin we use to optimize our WP database has modified most of my posts within the past month. Unfortunately WordPress doesn’t seem to have a way to display the latest revision date instead of the latest modified date. Thanks anyway for the help!
February 5, 2017 at 8:56 am #108842PratikKeymasterHi @ashleycovelli,
Thank you for sharing the outcome with us. It will be helpful for may of our users.
Regards,
Pratik -
AuthorPosts
- The topic ‘How to show "last modified" date on posts’ is closed to new replies.