How can I change posts to “Minutes Ago” instead of “Post Date”?

[ad_1]

Hi,

Basically I wanna change my posts to say “5 minutes ago, or 2 hours ago”, as long as it’s fresher than 24 hours.

I used a “Meks Time Ago” plugin and it worked, but there seemed to be some Time Zone issues. The site is set to UTC +0, and there are a lot of posts submitted on our website, yet for some it would actually be counting in the opposite direction (I guess the time zone difference problem, but not sure what to do). It didn’t seem like the plugin problem.

Is there any simple way to change the functions.php to do “how many minutes ago” instead of current date? Or maybe, something like this “5 minutes ago (March 18th)”. We have a custom theme and I don’t think it interferes.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer