iyamdman
Member
Posted 9 months ago #
I am working on a footer, and the text format of the footer is:
'© 2011 GBS. All Rights Reserved.'
What I want, is to 'pull' the 2011/YEAR from wordpress, so that the copyright year always equals the current year.
I assume I would place the code in footer.php - but I don't know what the code would look like.
Any help?
Replace 2011 with:
<?php echo date('Y'); ?>
And yes, this would go in your theme's footer.php file.
iyamdman
Member
Posted 9 months ago #
Thank you sooooo much - that worked perfectly!!!
@iyamdman - If you really want to dress up your copyright statement this article might interest you: http://wpfirstaid.com/2011/06/dynamic-copyright-revisited/
iyamdman
Member
Posted 9 months ago #
Hi Ed - thanx, really good article!!