Auto Update Copyright Date In Wordpress Footer With PHP

Auto Update Copyright Date In Wordpress Footer With PHP

If you build wordpress themes or happen to maintain many wordpress themes for clients this is for you.

Paste the following code in your footer and that’s it. The date will automatically update on it’s own making you look like a Rockstar and making your clients happy.

<?php
echo ‘Copyright &copy; ‘ .date(”Y”);
?>

Thanks for stopping by. Share the link to this page if you found it helpful

People who read this also read:
  • 10 Great Wordpress Hacks & Tricks
  • Wordpress Show Parent Title if Showing Children Pages
  • WordPress Under Attack
  • Password Protect Your Entire Wordpress Website
  • Do You Own Your Web Site Design?
  • Choose Your Wordpress sidebar
  • What is an RSS Feed?
  • If you have any questions, addtional information, or found this helpful "Leave a Comment" below.
    • Damian Gostomski
      I've written a short snippet which is an improvement over this, as it supports date ranges, so all you enter is the start date, and then it will display it as just that year, or that year to the current one if applicable

      Check it out at http://www.gostomski.co.uk/sni...
    blog comments powered by Disqus