[wp-hackers] the_date() vs. the_time()

David Chait davebytes at comcast.net
Fri Aug 4 17:09:46 GMT 2006


the_date shows a given date ONCE through The Loop, as 'dividers' between 
days -- if it displayed already for a given day, it doesn't output anything 
on further calls.  If you want every post to have a timestamp, use the_time, 
which outputs all the time, no checks.


----- Original Message ----- 
From: "R.J. Kaplan " <just.be.happy at gmail.com>
To: <wp-hackers at lists.automattic.com>
Sent: Friday, August 04, 2006 2:32 AM
Subject: [wp-hackers] the_date() vs. the_time()


| 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?
| _______________________________________________
| wp-hackers mailing list
| wp-hackers at lists.automattic.com
| http://lists.automattic.com/mailman/listinfo/wp-hackers
| 



More information about the wp-hackers mailing list