-
I am having a strange issue.
I normally use a tag [year] in my post title to add the current year.
For this, I am using the following code in my function.php file on WordPress,
function year_shortcode() { $year = date('Y'); return $year; } add_shortcode('year', 'year_shortcode');
Rank Math plugin is not recognizing the code and is displaying [year] in my meta titles on Google.
Help appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The ticket ‘Issue with ShortCode’ is closed to new replies.