Title: Nested variables
Last modified: August 9, 2023

---

# Nested variables

 *  [anitajoli](https://wordpress.org/support/users/anitajolicomau/)
 * (@anitajolicomau)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/nested-variables/)
 * I would like to nest one variable inside another thus:
 *     ```wp-block-code
       site_email mysite_email@gmail.com
       site_email_link <a href="mailto:[cgv site_email]">[cgv site_email]</a>
       ```
   
 * Trying it out doesn’t seem to work: I get
 *     ```wp-block-code
       <a href="mailto:mysite_email@gmail.com">[cgv site_email]</a>
       ```
   
 * Is there a way to do this in such a way that an admin is not retyping the site
   email?

The topic ‘Nested variables’ is closed to new replies.

 * ![](https://ps.w.org/custom-global-variables/assets/icon-256x256.png?rev=1415125)
 * [Custom Global Variables](https://wordpress.org/plugins/custom-global-variables/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-global-variables/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-global-variables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-global-variables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-global-variables/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [anitajoli](https://wordpress.org/support/users/anitajolicomau/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/nested-variables/)
 * Status: not resolved