How do we display the users on post last updated ?. in my case when i update any post it shows the old date and not the updated date. Example – https://imgur.com/a/UC7ai
Hi,
That would require modifications to the theme files, meaning the post template files. Please follow this topic
– https://forum.tagdiv.com/topic/how-to-make-this/
Thanks
Hi,
Please note that this modification will have to be made to the post template style that you are using. If multiple post templates are used throughout the website, this change will have to be made for each of them.
For example here I am using post template style 2
– https://www.screencast.com/t/XqWndJvXa
The modification has to be made to the single_template_2.php file
– https://www.screencast.com/t/g9BfEEjWfAzJ
Replace the highlighted line of code with the one provided in the topic pastebin, with a small modification to it (this way there is no need to use the CSS for styling)
– https://www.screencast.com/t/B5n6tGi60Mhm
– https://www.screencast.com/t/Lf3UI6jf
– https://www.screencast.com/t/xu5Uc6yxn
The result is like this
– https://www.screencast.com/t/WuC2OKToxX2
You could change the text (Last Modified) as well if you like, for example like this
– https://www.screencast.com/t/A1sXw1R6Yha
– https://www.screencast.com/t/FprWr9t0
For some post templates, the modification will have to be made in the loop single file, instead of the single file. Like post template 9 for example
– https://www.screencast.com/t/e2x3GQ0i8A
Once made all posts that have the modified post template, will display the modified date.
Thanks
hi Simon,
Today i changed the post template and followed the instructions to add last updated date that you mentioned. To my surprise i saw all the post date shows Last updated November 15 2017. If i edit any post and update the content, it shows today’s date. However any old post is showing Last updated was on 15th November. i don’t know why is it showing that date only.
That means the post that i published 2 years ago is showing last update 15 Nov 2017. How do we fix this ?.
-
This reply was modified 8 years by
techpaced.
Hi,
The date that is displayed will be the one when the post was last modified, or if the post was not modified the date when it was created
– https://codex.wordpress.org/Function_Reference/the_modified_date
I believe that by changing the post template, the date when you made this change this will be displayed, because it counts as a modification.
Thanks
Team, please make this option possible in your theme. Theme should have option which date we want to display.
-
This reply was modified 8 years by
Vinay Prajapati.
Thanks! Make sure it should able to inform Google we updated the post to some date.
I want to show the date of the last update on my posts. And also want to make sure search engine bots will able to crawl this and show in Google search snippets. Most of the users are looking for this features. When it will be available in Newspaper.
There should also an option to hide “date published” schema from source code/template.
check this screen shot- https://imgur.com/a/VXVdG
Hi, this is a must feature today. I think there should be an option like a check box in the post admin that when checked should show the last modified date/updated date. Otherwise it will change the published date or add the modified date to any old post that will be just opened by error and updated. Because it shouldn’t happen for any such post but only the deliberate act of updating post should display the last modified date.
Dear TechPaced and friends,
In case you guys are still looking for this solution then this post can help :
http://www.techbuzz.in/tagdiv-newspaper-theme-last-updated-modified-time.php
Bloggers should use this feature cautiously as mis-using it might attract penalty from Google.
Hope this helps.
Hi,
@manuovi You could keep both default date code and add the modified code below it. Example for post template style 2
– https://www.screencast.com/t/Pwa0u3iH
Result – https://www.screencast.com/t/1r3efBiFCT
So add the provided code below the default date code, instead of replacing it.
Thanks
@Ryansmccain not yet. Only the ‘time ago’ feature has been added for the custom single post templates from the cloud library plugin.