Title: Title variables
Last modified: February 5, 2018

---

# Title variables

 *  Resolved [jamiek47](https://wordpress.org/support/users/jamiek47/)
 * (@jamiek47)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/title-variables/)
 * Hi,
 * I want to use the title variable for the date of the post/page (%%date%%), but
   only display the year.
 * How can I do that?
 * I know I can display the current year, but it needs to be the year of the post/
   page publish/update date.
 * Thanks,
    Jamie

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

 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/title-variables/#post-9939979)
 * Unfortunately, we don’t have a template variable available to show the only year
   when the post or page was published. However, we’d welcome you to submit a feature
   request to our [GitHub repository](https://github.com/Yoast/wordpress-seo/issues)
   so our development team can consider this when planning updates in future.
 *  Thread Starter [jamiek47](https://wordpress.org/support/users/jamiek47/)
 * (@jamiek47)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/title-variables/#post-9940003)
 * Ah ok.
 * Is it possible to create custom variables if I had a developer take a look at
   it?
 * Thanks
 *  [MariusG](https://wordpress.org/support/users/marius_codeinwp/)
 * (@marius_codeinwp)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/title-variables/#post-9945172)
 * Yes, it is possible to create new variables or edit the existing ones.
 *  Thread Starter [jamiek47](https://wordpress.org/support/users/jamiek47/)
 * (@jamiek47)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/title-variables/#post-9946453)
 * Great, I wondered if there is any documentation on this that might help when 
   I ask a developer to take a look at doing this?
 * Thanks
 *  [MariusG](https://wordpress.org/support/users/marius_codeinwp/)
 * (@marius_codeinwp)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/title-variables/#post-9946641)
 * Yes, please refer your developer to this documentation and snippets:
    - [https://github.com/Yoast/wordpress-seo/blob/trunk/inc/wpseo-functions.php#L97](https://github.com/Yoast/wordpress-seo/blob/trunk/inc/wpseo-functions.php#L97)
    - [https://gist.github.com/amboutwe/550c10ede7d065d9264930f5480ca748](https://gist.github.com/amboutwe/550c10ede7d065d9264930f5480ca748)
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/title-variables/#post-9975909)
 * No further response, setting to resolved.

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

The topic ‘Title variables’ 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

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

 * 6 replies
 * 4 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/title-variables/#post-9975909)
 * Status: resolved