Monday, January 21, 2013

[WordPress] Get current year dynamically

Problem:
How to retrieve the current year in PHP instead of using a hardcoded one.  

Solution:
<div id="footer">
      <div class="container">
        <p class="muted credit">&copy <?php echo(Date("Y")); ?> mycompany</p>
      </div>
</div>

No comments:

Post a Comment