Knowledgebase
How to Display Relative Dates in WordPress
Posted by Susan Tyson on 08 June 2016 05:54 PM

Have you ever seen this in blog posts and comments and wondered how did this blogger manage to do this? Actually it is pretty easy.

You would need to download a plugin called WP-Relative Date

Once you have downloaded and activated the plugin, look in your single.php, index.php, and page.php for this code:

1 <?php the_date(); ?>

Replace it with:

 
1 <?php relative_post_the_date(); ?>
(0 vote(s))
Helpful
Not helpful

Comments (5)
Bono
13 July 2016 08:29 PM
Fire MU&#8217;s team baeGbr!rreat game, MU is improving, quit crying about the Morris twins Tiger Fan&#8230;I think I would be more worried about that barber for the MU hoops team giving those guys haircuts on the bus ride into Lawrence. Whiskey Tango Foxtrot?
Marylada
13 July 2016 08:57 PM
You just hav8n&#e217;t found the right girl. You&#8217;d be surprised at what the right one can do. Maybe you are just scared at being with her forever because you aren&#8217;t compatible. I think you should find someone who fits you better. You&#8217;ll be glad you did
Denver
14 July 2016 04:59 PM
There is a critical shortage of <a href="http://pkcqso.com">inomtfarive</a> articles like this.
Puss
17 July 2016 01:39 PM
That insight solves the proembl. Thanks! http://nypqful.com [url=http://cruquxxx.com]cruquxxx[/url] [link=http://molapfannj.com]molapfannj[/link]
Tyanne
18 July 2016 08:23 PM
<a href="http://hutfojsblqs.com">Sunisprirg</a> to think of something like that
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).