• Hi all,

    I have this code below in the footer of my blog, for the usual copyright/rss jazz.

    <?php the_time('Y'); ?> <?php bloginfo('name'); ?>. <a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/bg/feedicon12.png" alt="Entries (RSS)" style="vertical-align: top; margin: 2px 0 0 7px;" /></a>

    Obviously the issue is referring to the below

    <?php the_time('Y'); ?>

    It still shows 2009 now, instead of 2010. Any ideas on how to solve this?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • the_time() is a wordpress function and refers to the saving time of a post or page. in footer this can have any odd value, depending on the loops or queries in the main body of the site.

    instead, try <?php echo date('Y'); ?>

    Thread Starter fjh

    (@fjh)

    That’s sorted it, thanks very much for your help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Year not displaying correctly in footer of blog’ is closed to new replies.