I use this plugin alot for interface and this is also something I’d like to do natively. After trying some tricks, I found a way to accomplish this.
This code doesn’t work:
[do action="nine_six_zero_gs" grid="6" appearence="none"]<p><strong>Lorem Ipsum</strong>?is simply dummy text of the printing.</p>
[do action="button" color="black" url="https://www.google.ca/" target="_blank" size="medium" align="right"]Hire us![/do][/do]
Because it stats doing the shortcode “do” inside the other one but breaks at the fist “[/do]” leaving the last [/do] written as text in the content (sadface).
But this one does!:
[do action="nine_six_zero_gs" grid="6" appearence="none"]<p><strong>Lorem Ipsum</strong>?is simply dummy text of the printing.</p>
[do action="button" color="black" url="https://www.google.ca/" target="_blank" size="medium" align="right" content="Hire us!"/][/do]
1st, I added do_shortcode to the content of action="nine_six_zero_gs"
See the code below:
return ‘<div class=”grid_’ . $atts[“grid”] . ‘ ‘ . $atts[“appearence”] . ‘”>’ . do_shortcode($content) . ‘</div>’;
And here’s the little tweak: my php code for the action="button"
starts with this:
if ($content == ”)
$content = $atts[“content”];
So everything works fine!
In your case iJas0n, to be more clear, yout code:
[do action=”myaction”]
My Content
[gravityform id=”1″ name=”My Gravity Form Shortcode” title=”false” description=”false” ajax=”true”][/gravityform]
[/do]
could work fine just by adding do_shortcode($content) to the php code of your “myaction” shortcode:
return ‘some html or php before ‘ . do_shortcode($content) . ‘ some html or php after’;
I Hope it helps someone out there.
Ps.
Note to the dev: There should be an option allowing recursivity of do_shortcode() so it would be a bit easier than tweeking all of the shortcode made in this plugin :).
By the way, this plugin is awesome :D.