[wp-hackers] the_date() vs. the_time()
peter.westwood at ftwr.co.uk
Fri Aug 4 16:33:31 GMT 2006
R.J. Kaplan wrote:
> 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,
> 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
> 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
More information about the wp-hackers