Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Display Current Year

// Add Shortcode
function display_current_year_shortcode() {

	// Code
return date("Y");
}
add_shortcode( 'current-year', 'display_current_year_shortcode' );