WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

wp_time_since

Displays the time since a particular post or page was written.

Usage

If your local time is the same as your server’s time insert this code within ‘the post/page loop’: <?php wp_time_since(); ?>

If your local time differs from your servers time then read on. The first thing you’ll need to do is find the difference in hours between the server and you.

Example 1: Server time = 15:00 Your time = 16:00 Difference = 1

Example 2: Server time = 16:00 Your time = 15:00 Difference = -1

Example 3: Server time = 15:00 Your time = 15:00 Difference = 0

Code to find the server time: <?php echo time(); ?>

Then you put the difference between the two brackets in the code:

Example 1 Code: <?php wp_time_since(1); ?>

Example 2 Code: <?php wp_time_since(-1); ?>

Example 3 Code: <?php wp_time_since(); ?>

Modifications

You can modify the plugin to suit your own needs by clicking on edit next to the plugin’s name in your plugin management section. You’ll notice that there are a set of parameters at the top of the page which you can modify for your own needs. If you need help then leave a comment on my site and I’ll see what I can do.

Requires: 2.1 or higher
Compatible up to: 2.1
Last Updated: 2007-4-6
Downloads: 4,172

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1