get_year_link
TIME/DATE TAG
What It Does
Retrieves the yearly archive URL for a specified year.
Code
<?php get_year_link(‘year’); ?>
If no year is specified, the archive for the current year will be retrieved.
Example
To display an archive link to 2009, you would use:
<a href=”<?php echo get_year_link(’2009′); ?>”>Archive for 2009</a>
To display an archive link to the current year, you would use:
<a href=”<?php echo get_year_link(”); ?>”>This Year’s Archives</a>




