by chatab
1 replies
in my theme i put this code

&copy; <?php the_time('Y') ?>
but it still showing (c) 2009 ?
what happens?
#call #wordpress #year
  • Profile picture of the author chaos69
    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

    Signature
    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.”
    {{ DiscussionBoard.errors[1653133].message }}

Trending Topics