Title: Nested Shortcodes
Last modified: April 22, 2017

---

# Nested Shortcodes

 *  [mola2alex](https://wordpress.org/support/users/mola2alex/)
 * (@mola2alex)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/nested-shortcodes-11/)
 * I was wondering if there was a way for one shortcode to call another, so what
   I am trying to accomplish is this. User has a bunch of buttons that when clicked
   launch a shortcode that launches a form. So it would look something like the 
   below and then depending on the button clicked, I change the ‘rate’ parameter
   to match the button clicked which populates a form. However, this rate can change
   frequently so I have also a shortcode for rate for a one stop shop.
 * This calls the form and adds a parameter rate in the form %%rate%%
    [shortcode-
   variables slug=”formslug” rate=”2.19%”]
 * The rate shortcode looks something like this:
    [shortcode-variables slug=”rate1″]
 * I was wondering if you could have something like:
    [shortcode-variables slug=”
   formslug” rate=rate1]
 * Or have some way to identify to use another shortcode as the actual parameter
   to be used in another.

Viewing 1 replies (of 1 total)

 *  Plugin Author [YeKen](https://wordpress.org/support/users/aliakro/)
 * (@aliakro)
 * [9 years ago](https://wordpress.org/support/topic/nested-shortcodes-11/#post-9088887)
 * Hi there,
 * I’m struggling with your example. Want to drop me an email?
 * [email@yeken.uk](https://wordpress.org/support/topic/nested-shortcodes-11/email@yeken.uk?output_format=md)
 * Al

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/shortcode-variables/assets/icon-256x256.png?rev=2402961)
 * [Snippet Shortcodes](https://wordpress.org/plugins/shortcode-variables/)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-variables/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-variables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-variables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-variables/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [YeKen](https://wordpress.org/support/users/aliakro/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/nested-shortcodes-11/#post-9088887)
 * Status: not resolved