So ... Here's the thing ... Certain themes will override the plugin settings and you won't see any changes ...

In such cases you have two options: to install and activate a new theme, or to insert the relative dates manually into your WP theme files.

In the latter case, you'll need a different plugin called WP Relative Date. Here it is:

WP RelativeDate

Upon activation, the plugin will try to replace the default WP dates in your theme files with relative date & time. But once again, there are countless themes out there, each one is coded in a different manner, and the plugin may not be able to work with your theme ...

In which case you'll have to insert the code manually into your Wordpress theme files.

For example, if you want to display relative dates on a single post page, then you'll have to edit the single.php or content-single.php files. For comments, you may need to edit the comments.php file. And so on ...

First, you'll have to download the targeted file to your computer using an FTP connection or WP File Manager.

Then, you'll have to find the following lines in your theme’s template file(s) ...


<?php the_date(); ?>
<?phpsget_the_time();s?>
<?phpsget_the_date();s?>



... in order to replace them with the following line ...


<?php relative_post_the_date(); ?>


And of course, you'll have to upload the edited files to implement the changes ...

One last thing: any theme update will overwrite the manually edited and uploaded files!

And that's it my friends!

If you have any comments, further questions or update requests please don't hesitate to react! Like, comment and share!

And don't forget, you can easily come back to this tutorial whenever you want.

All you need to do is to bookmark the categorized, daily updated register of my blogs and training materials. Here it is:

Posts and training by smartketeer

Thanks for your time!




Join the Discussion
Write something…
Recent messages
dowj01 Premium
Great training. Your tutorials are very clear and easy to follow.
Thank you.
Justin (a moment ago)!
Reply
smartketeer Premium
Thanks my friend!
Reply
lesabre Premium
Thank you again Zed
Reply
smartketeer Premium
Thank YOU my friend!
Reply
ExpatMark Premium
Trying it out now. Hope my theme likes Mek.

Thanks dude.
Have a great weekend.

Mark
Reply
smartketeer Premium
Let me know if works :)
Reply
ExpatMark Premium
Works fine with Personal Trainer Pro (Catch Theme). It least I got one thing done today.
Reply
smartketeer Premium
Awesome :))
Reply
ExpatMark Premium
I think I want to put the "world clock" on top of homepage. I want an international flavor to my site and that does the trick. That was in your training vids, wasn't it?
Reply
smartketeer Premium
Nope :(

I have a training with a map feature, but nothing related to time zones ...

Yet :)
Reply
rushinge Premium
Thanks for sharing!
Reply
smartketeer Premium
Thanks for reading!
Reply
Terand Premium
Wow, I didn’t know that. Thank you again, Zed! Will have to do it on my notebook :o)
Reply
smartketeer Premium
Thank YOU :)
Reply
Terand Premium
Omg, I’ve managed to install on my iPhone for the first time!
Reply
Top