@3DyourBaby
Check this.
https://stackoverflow.com/questions/20370582/display-current-year-in-wordpress
You can create a function
function currentYear( $atts ){
return date(‘Y’);
}
add_shortcode( ‘year’, ‘currentYear’ );
and then use the [year] shortcode anywhere you want.
Put the code in functions.php file of child-theme or use the plugin
https://wordpress.org/plugins/code-snippets/
To add it from the backend