If..Else Log

Time Of Day plugin v1

Update (20-Feb-05): I've updated the plugin for WP 1.5 users. You can read more about it here.

I've updated the time of day WP plugin. Instead of passing in the post_ID, the code now looks for a timestamp. This should mean that it will work for comments (and indeed, any date value) as well.

Usage Instructions:: To install the plugin in WP 1.2, save the plugin code into your wp-content/plugins directory. Then, activate/deactivate it via Admin Options-> Plugin Mangagement page.

Then place the following piece of code within The Loop:
<?php time_of_day(abs(strtotime($post->post_date)));?>

-30-

15 Responses to “Time Of Day plugin v1”

  1. Gravatar a trendy name » archives

    […] . Also, this release requires the Time Since plugin and the […]

  2. Gravatar empdesign » Blog Archive » Plugins Wp

    […] ios por texto plano en el caso de que los comentarios estén cerrados para esa entrada. […]

  3. Gravatar Daria Unplugged » Credit where credit is due.

    […] things running, but it was definantly worth it. The last plugin currently in use is “Dunstan’s Time of Day Plugin,” created by Duntan Orchard. This plu […]

  4. Gravatar Inicio « mediasur.cl

    […] Dunstan’s Time of day: Las horas de las entradas y comentarios son sustituidas por frases definidas por el usuario. Por ejemplo se podría sustituir el rango de horas de las 7 de la mañana a las 12 por //”por la mañana”//. […]

  5. Gravatar Inicio « mediasur.cl

    […] Dunstan’s Time of day: Las horas de las entradas y comentarios son sustituidas por frases definidas por el usuario. Por ejemplo se podría sustituir el rango de horas de las 7 de la mañana a las 12 por //”por la mañana”//. […]