-
Hi, I just recently changed from Yoast to Rank Math and been very happy with it so far. I have on my site the code that will update the year every year automatically whenever instead of typing 2020 I write [year]. But now it’s displaying in the SERPS “[year]” instead of the current year which looks terrible. The code I had to put to funtions.php for Yoast to update the year was this
//* Activate shortcode function in Yoast Title and Meta Description
add_filter( ‘wpseo_title’, ‘do_shortcode’ );
add_filter( ‘wpseo_metadesc’, ‘do_shortcode’ );Do you have something like this for RankMath? Thanks
The ticket ‘Update year automatically’ is closed to new replies.