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

Jeremy Visser jeremy.visser at gmail.com
Mon Oct 8 07:34:14 GMT 2007


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?


More information about the wp-testers mailing list