How to make this?

Posted in: Newspaper
Post count: 21

I updated one of my sites this morning and all my settings were still there.

Post count: 60

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.

Post count: 76

@Vinay,
Yes i change that every update and think an option to do that automatically can be a good idea!

Post count: 60

tagdiv team must use itemprop=”dateModified” for search results.

Post count: 20685

@Vinay Since this is not a theme option but a theme customization, further modifications would be necessary like you mention.

I believe this is on our list, in the future this might be implemented officially and properly.

Post count: 60

@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.

Post count: 19

I made the changes as suggested above. Few issues which I am facing are :

1> The publish date shown on home page doesn’t change.
2> Changes don’t reflect in amp pages.

How do we address these issues?

Thanks in advance.

Post count: 20685

@Gautam This solution is for the post pages only, not the modules/blocks. On AMP the posts use a different post template from the plugin, not the post templates of the theme.

Post count: 60

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.

Post count: 19

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.

Post count: 376

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>

Post count: 20685

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

Post count: 224

what happens after you update the theme

Post count: 20685

@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.

Post count: 224

How do i do it? what you showed was link to child theme not which file in the child theme should be modified

Post count: 20685

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.

Post count: 224

in the future? that means next 4YRS

Post count: 376

I ended up using a plug-in.

Viewing 18 posts - 26 through 43 (of 43 total)
You must be logged in to reply to this topic.