Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

wp_time_since

Descripción

A plugin for displaying the time since a particular post or page was written.

Example Output: 1 day, 20 hours ago.

License

Released under the GNU General Public License.

Usage

If your local time is the same as your servers 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 youll 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 plugins name in your plugin management section. Youll 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 Ill see what I can do.

Instalación

Installation takes no time at all, if this is the first plugin you’ve installed then be sure to read the instructions below:

  1. Download the plugin.
  2. Upload wp_time_since.php to the WordPress plugin directory.
  3. Activate the plugin.
  4. Read the section on usage.

Reseñas

No hay reseñas para este plugin.

Colaboradores y desarrolladores

«wp_time_since» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

Traduce «wp_time_since» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.