Archived topic
How to add a current year tag to the footer
5 replies · Started by Christophe on May 27, 2022
Hi,
I'm trying to add a {{current_year}} in my footer Element.
I thought it was as simple as typing {{current_year}} in the dedicated block but all i get is:

How can i fix it pls ?
Hi there,
is the Block Element > Element Type set to: Site Footer ?
Nop, it's set like this:
Type: Hook
Hook Name: footer
Can you try David's suggestion then?
Here is the reference article:
https://docs.generatepress.com/article/block-element-site-footer/
Done. Worked like a charm.
Why the tags are not working for all element types ? (just to know)
Cheers,
Because the year is usually not needed for other element types.