Monthly Archives: December 2009

WordPress Relative Post Time

This is a small function I wrote this morning to generate relative time stamps for Wordpress posts, similar to those used on Twitter. It is pretty simple to implement, and will allow you to display a relative timestamp simply by replacing the <?php post_date(); ?> call with <?php relative_time(); ?> in your theme.

Continue reading

Posted in how to | Tagged , | 4 Comments