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

enter image description here

Any Idea ?

Leave a Reply

Your email address will not be published. Required fields are marked *