Title: Blank space when adding %%currentyear%% between [ ]
Last modified: November 4, 2021

---

# Blank space when adding %%currentyear%% between [ ]

 *  Resolved [alexander39](https://wordpress.org/support/users/alexander39/)
 * (@alexander39)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/blank-space-when-adding-currentyear-between/)
 * Hello, I’ve noticed that there is a bug when trying to add the %%currentyear%%
   variable between [ ]
 * For example, on the meta tite, if i add [%%currenttyear%% ]
 * As you can see, it displays like this [2021 ]
 * I can’t remove that blank space after the year number in any way.
 * The language I am using is Spanish
    and I currently have the latest version of
   Yoast SEO
 * Thank you
    -  This topic was modified 4 years, 7 months ago by [alexander39](https://wordpress.org/support/users/alexander39/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/blank-space-when-adding-currentyear-between/#post-15039626)
 * Hello Alexander,
 * Thanks for reaching out regarding the Yoast SEO snippet variables.
 * Unfortunately, we were unable to replicate the issue and we are sure it is not
   language-dependent. Using `%%currentyear%%` in square brackets `[]` worked without
   seeing a space being added after the year. See [image1](https://pasteboard.co/oNPGTQ2a1tsY.png)
   and [image2](https://pasteboard.co/P73NzB75ILNe.png).
 * Can you please double-check that you are not adding the space in error? Are you
   copying and pasting the variable or manually typing it in?
 * Looking forward to hearing from you.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/blank-space-when-adding-currentyear-between/#post-15066235)
 * We are going ahead and marking this issue as resolved due to inactivity. If you
   require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Blank space when adding %%currentyear%% between [ ]’ is closed to new
replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [currentyear](https://wordpress.org/support/topic-tag/currentyear/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * 2 replies
 * 3 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/blank-space-when-adding-currentyear-between/#post-15066235)
 * Status: resolved