Display Today’s Date

Step One:  Got to Appearance > Editor and click on the functions.php file.

Step Two:  Make a copy of the contents of the file and save to your desktop.

Step Three:  Add the following code to the bottom of the file and save:

function displayTodaysDate( $atts )
return date(get_option('date_format'));
add_shortcode( 'datetoday', 'displayTodaysDate');
Step Four:  Put the shortcode in where you want to display the date [datetoday]

Powered by BetterDocs