Categories
CMS Mastering Development Wordpress

Date Shortcode in Image alt and title tags

I am using the following shortcode for year in my Content. function year_shortcode() { $year = date(‘Y’); return $year; } add_shortcode(‘year’, ‘year_shortcode’); The same shortcode I used in the image "alt tag and title" which not working Any Idea ?