How to Automatically Display Current Date in WordPress

How to Automatically Display Current Date in WordPress

In order to get the current date to automatically display in your WordPress site, you just need to add a line of code to your theme wherever you would like it to show up. (Appearance > Editor)

An example would be to add the following line of code:

<?php echo date('l jS F Y'); ?>

After adding that line to my header.php file, here’s the result.

You can configure the date to appear as you like. For more information on your options, see the WordPress Date and Time page.

Photo: New Year’s Day Calendar from BigStock

Free Video Why 100 is NOT a Perfect Google PageSpeed Score (*5 Min Watch) Learn how to use Google PageSpeed Insights to set realistic goals, improve site speed, and why aiming for a perfect 100 is the WRONG goal.
Tags: