Show Today’s Date on a WordPress Page
If you are using WordPress to create squeeze pages or landing pages and want to create a page that always displays the current date, this tip is for you! By adding just a few lines of code to your functions.php file, you can create a WordPress shortcode that allows to you to insert a dynamic date anywhere on your page. For example, perhaps you have a sales letter page with the date displayed at the very top, and you want “today’s date” to automatically be updated without having to edit the page all the time … this video will show you how it’s done:
You need to upgrade your Flash Player to version 8 or newer.
Below is the code that you need to copy and paste into your functions.php file:
To insert the dyanamic date anywhere on a WordPress page, simply add the following shortcode to your page:
Like this tip?
Would you like to receive the WordPress Tip of the Day delivered straight to your inbox each and every day?