[wp-hackers] the_date() vs. the_time()
Kaf Oseo
kaf at szub.net
Fri Aug 4 17:37:26 GMT 2006
http://codex.wordpress.org/Template_Tags/the_date
SPECIAL NOTE: When there are multiple posts on a page published
under the SAME DAY, the_date() only displays the date for the
first post (that is, the first instance of the_date()). To
repeat the date for posts published under the same day, you
should use the Template Tag the_time() with a date-specific
format string.
Note that questions of this sort are best asked (and answered) on the
WordPress support forums: http://wordpress.org/support
-Kaf
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?
> _______________________________________________
> 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