Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 0 voices.

Last updated by alenaN 2 months, 2 weeks ago.

Author Posts
April 29, 2025 at 8:15 am #16977625

alenaN

Background of the issue:
I am trying to use the template tag {{current_year}} in the footer of my website hidden link. The tag is inserted in the Czech original and works correctly in the German translation, displaying the current year 2025.

Symptoms:
In the English translation, the template tag {{current_year}} is not working on the frontend and displays as the text {{current_year}} instead of the current year.

Questions:
Why is the {{current_year}} template tag not working in the English translation?
How can I fix the issue with the {{current_year}} tag in the English version?

May 1, 2025 at 11:26 pm #16987635

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Welcome to the WPML support forum. Thanks for contacting us.

While waiting for one of my colleagues to help with this ticket, I had a quick look at your website and looking at the source code I can see that the link is incorrectly placed, breaking the tag:

© 2017-{{current_year}<a href="<em><u>hidden link</u></em>">} NAVGAS s.r.o.

Try removing the link so that the tag is {{current_year}} and then place again the link on the correct text.

Looking forward to hearing back from you.

Nico

May 5, 2025 at 6:28 am #16994377

alenaN

Hi Nico,

Thank you, I've made the correction and it is working fine now.