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
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to