[wp-testers] the_date & the_time

Owen Winkler ringmaster at midnightcircus.com
Fri Sep 16 16:18:57 GMT 2005


Santanu Misra wrote:
> Hi,
> 
> I am wondering why the "the-date" does not return any value for the seond 
> post when I have more than one post for the same date ?
> 
> I am reffering to the functions found in "wp-includes/template-
> functions-general.php"
> 
> 
> Any clue ?

These functions are oddly named compared to what they do, I think.

the_date() is supposed to do exactly what you've described - output the 
date only once for each unique day in the post loop.

the_time() will do better what you want since it outputs for each post. 
Just supply a date-formatting string that shows only the date, and not 
the time.

Owen



More information about the wp-testers mailing list