Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   wordpress year call (https://www.warriorforum.com/programming/169948-wordpress-year-call.html)

chatab 22nd January 2010 08:41 AM

wordpress year call
 
in my theme i put this code

Quote:

&copy; <?php the_time('Y') ?>
but it still showing (c) 2009 ?
what happens?

Luke Graham 22nd January 2010 09:10 AM

Re: wordpress year call
 
the_time is in reference to the post you are processing; so it is the year the post was published.

If you want to display the year in a footer or such, use the date function.

<?php echo date("Y") ?>

EDIT: Heres a link the to wordpress tag for more information on its use;

http://codex.wordpress.org/Template_Tags/the_time



All times are GMT -6. The time now is 08:06 AM.