Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd Jan 2010, 08:41 AM   #1
Warrior Member
 
Join Date: 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default
wordpress year call
Share on: 
fb share twitter share gplus share more share

in my theme i put this code

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

chatab is offline  
Unread 22nd Jan 2010, 09:10 AM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2009
Location: U.K
Posts: 197
Thanks: 5
Thanked 39 Times in 36 Posts
Default
Re: wordpress year call
Share on: 
fb share twitter share gplus share more share

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


Best Ways To Make Money Online

Eight bytes walk into a bar. The bartender asks, “Can I get you anything?”
“Yeah,” reply the bytes. “Make us a double.”
Luke Graham is offline  
Closed Thread


Bookmarks

Tags
call, wordpress, year


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 07:44 AM.