Shortcode to output the current year. Useful for Copyright/Footer
add_shortcode( 'year', 'shortcode_current_year' ); function shortcode_current_year(){ return date( 'Y' ); }