Everyone want to show date of last update for their posts. Search engine should also be able to read your date of last update. Is team working on this? If yes, when this option will be in theme by default.
tagdiv team must use itemprop=”dateModified” for search results.
@simon, Thanks!
you may check wpbeginner.com, they are –
1. Showing last updated on: the_modified_date
2. Using schema <time itemprop=”dateModified” …>…</time>
3. Google showing last modified date instead of date published
4. Stripping datePublished from Aricle structured data
5. Using CreativeWork instead of Article
I also highly recommend theme should have option to choose among various schema properties.
I believe this post will help you guys- https://www.techprevue.com/show-last-updated-modified-date-newspaper-theme/
this very short and simple. Must try this.
Hi All,
I’ve implemented the same on my blog http://www.techbuzz.in and also I’ve blogged about the same.
However, the effect of this has to be studied when NewsPaper theme is updated.
I’ve written about the benefits and problems with implementing ‘last_modified_time’.
http://www.techbuzz.in/tagdiv-newspaper-theme-last-updated-modified-time.php
Bloggers should use use this feature cautiously as mis-using it might attract penalty from Google.
So, it should look like this?
<div class="td-module-meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo the_modified_date('l, F j, Y', '<div class="the-modified-date">LAST MODIFIED: ','</div>');
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>
That code has a missing php closing tag, it will probably break the post page. Be sure to copy it fully. However I would use it like this for a better result
<?php echo the_modified_date('l, F j, Y', '<div class="td-post-date">LAST MODIFIED: ','</div>');?>
Direct result – https://www.screencast.com/t/lzUGBo1yQWY
@iamkingsleyf You can make that modification in a child theme, for the default post templates
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
The default post template files can be modified in a child theme, so this way an update will not affect the modification.
How do i do it? what you showed was link to child theme not which file in the child theme should be modified
For the post templates, the loop-single or single file corresponding to the post you want to do this for have to be modified – http://prntscr.com/mi9zwl
There are many other topic about it, for example
– https://forum.tagdiv.com/topic/post-last-updated/
I should note that it is strongly considered to add this as an option in the theme in a future update.
