/** * Add current year using shortcode [year] */ function current_year() { $year = date('j, F Y'); return $year; } add_shortcode('year', 'current_year');