Getting time in td_module_8 as a widget

Posted in: Newspaper
Post count: 151

Im trying to get the time in posts meta of td_module_8 as a widget.

So far, this works: <p>Time last modified: <?php the_modified_time(‘g:i a’); ?></p>
but it seems to be getting the time of the first post in the list and repeating it for every post.

Can you please let me know where to place it in order to have the correct modified time for every post separetly there?

Post count: 22421

Hello,

The date function is created here for all modules at once if you want to alter the main fucntion: https://www.screencast.com/t/f3NVvXDbDB
If you only want to alter the module 8, you will have to replace this code: https://www.screencast.com/t/3gVwPa3NuZyb
We have not tested implementing the modified time for pages though. You cna give this function a shot as well: https://codex.wordpress.org/Function_Reference/get_the_modified_date

Thanks.

Post count: 19

Hi Themesic,

I’ve implemented the how to display last modified time instead of published time 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.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.