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

Reply via email to