Title: Nested variables (shortcodes)
Last modified: September 1, 2016

---

# Nested variables (shortcodes)

 *  [Jan Zeman](https://wordpress.org/support/users/janzeman/)
 * (@janzeman)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/nested-variables-shortcodes/)
 * Excellent plugin! I just wrote an review where I explain why I think so.
 * My question: Would it be possible to get a feature where I would be able to nest
   the variables? I have a very good case where such a feature would save me a lot
   of time. What do I mean exactly?
 * 1) I create variable ‘version’ with value ’39’
    2) [cgv version] gives me correct
   and expected value of 39 3) I create variable ‘file’ with value ‘file_[cgv version].
   zip’
 * If used on page I get a result ‘file_[cgv version].zip’ but I would rather need‘
   file_39.zip’. Would it be possible to implement such a feature, please?
 * Best regards
    Jan
 * [https://wordpress.org/plugins/custom-global-variables/](https://wordpress.org/plugins/custom-global-variables/)

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

 *  Plugin Contributor [Abdullah Khalfan](https://wordpress.org/support/users/abdullahkhalfan/)
 * (@abdullahkhalfan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/nested-variables-shortcodes/#post-7607032)
 * Thanks for the feedback!
 * I like your suggestion and will definitely consider implementing it in the next
   version.
 *  Thread Starter [Jan Zeman](https://wordpress.org/support/users/janzeman/)
 * (@janzeman)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/nested-variables-shortcodes/#post-7607035)
 * So cool! Thank you 🙂
 *  Thread Starter [Jan Zeman](https://wordpress.org/support/users/janzeman/)
 * (@janzeman)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/nested-variables-shortcodes/#post-8402226)
 * Hi Abdullah,
 * Any follow up on this? I just had to change 20 of my pages manually and if I 
   had this it would have been just one touch 😉
 * No pressure, I do not need to do this often (this was after update to Avada 5)
   but yeah, it would be nice 🙂
 * All the best
    Jan

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

The topic ‘Nested variables (shortcodes)’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [Jan Zeman](https://wordpress.org/support/users/janzeman/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/nested-variables-shortcodes/#post-8402226)
 * Status: not resolved