[wp-testers] the_time bug? feature? lack of php knowledge?

Luc Saint-Elie lstelie at gmail.com
Mon Oct 8 07:51:56 GMT 2007


Hello,

Sorry, it was a stupid mistake.
the_time send an echo, what I was looking for is get_the_time

Appologies for the noise

Luc


Le 8 oct. 07 à 09:34, Jeremy Visser a écrit :

> Luc Saint-Elie wrote:
>> $post_year = the_time('Y');
>> echo intval($post_year);
>> For a 2007 post for example, the value displayed is 20070, not 2007
>
> What's the intval() for? Does it do the same thing if you just do  
> this?:
>
> 	echo $post_year;
>
>
>
> --
> P.S. I used a "?:" above. Is that correct punctuation?
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers



More information about the wp-testers mailing list