Wordpress Year Shortcode Wordpres , wordpress updated: Thursday, 8 June 2017Thursday, 8 June 2017 654308 Add the following code in your functions.php filefunction year_shortcode() { $year = date('Y'); return $year;}add_shortcode('year', 'year_shortcode');UsageUse [year] in your posts.