Show Dynamic Text in Step 2
-
Hello,
Is there a way to show dynamic text in Step 2? All I need is to show current year. I tried to add the following code into functions.php and use [year] in Step 2 but it doesn’t work (it shows ‘[year]’ instead of ‘2022’).
function year_shortcode () {
$year = date(‘Y’);
return $year;
}
add_shortcode (‘year’, ‘year_shortcode’);`Any ideas?
Thank you,
Jack
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show Dynamic Text in Step 2’ is closed to new replies.