Nested Shortcodes
-
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.
- The topic ‘Nested Shortcodes’ is closed to new replies.