[wp-hackers] the_date() vs. the_time()
Peter Westwood
peter.westwood at ftwr.co.uk
Fri Aug 4 16:33:31 GMT 2006
R.J. Kaplan wrote:
> Hi,
> I was wondering, what are the differences between the two for using inside
> the loop? I hade a theme that worked fine on my test server (apache 1.x,
> php
> 4 mac os x) with the_date() but broke on the live site (apache 2, php 5 and
> linux) some dates would show, and some wouldn't/ it was the weirdest thing.
> after hours of debugging, i tried switching to the_time) and it works
> great.
> anyone know why?
the_date only outputs once per day regardless of how many times you call
it (by design)
See http://codex.wordpress.org/Template_Tags/the_date for more info
westi
--
Peter Westwood
http://blog.ftwr.co.uk
More information about the wp-hackers
mailing list