Hi there,
I've been doing the php:
<?php the_time(); ?> and everytime I do it, it outputs "2010" as the year. Clearly, we're not in 2010 anymore. Why is this doing this? Anyway to fix it? I have the loop started, too.
- Steph
Hi there,
I've been doing the php:
<?php the_time(); ?> and everytime I do it, it outputs "2010" as the year. Clearly, we're not in 2010 anymore. Why is this doing this? Anyway to fix it? I have the loop started, too.
- Steph
the_time() outputs the publish time of a post; if not used in the loop, the output can be arbitrary.
if you want to output the current time, look into:
echo date('Y');
Ah, still, that's weird! I'll use the PHP output from now on, thanks :)
This topic has been closed to new replies.