use human_time_diff function

Posted in: Newspaper
Post count: 29

I used human_time_diff function to make time ago. I have used Module 15 every where.

Here is the code I used in td_module_15.php <?php echo human_time_diff( get_the_modified_time('U'), current_time('timestamp') ) . ' ago'; ?>

and removed the code <?php echo $this->get_date();?>

The problem is that time ago is achieved everywhere except single post listing. How to get time ago on single post listing?

Post count: 23312

Hi,

Replied via another topic, here -> https://forum.tagdiv.com/topic/use-human_time_diff-function/#post-141209

Thanks.

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