[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>

Comments

Popular posts from this blog

Breaking down document locking in SharePoint

Working around X-Frame-Options for iframes

Document ID not being generated