Short Code Within a Shortcode

WordPress theme dedicated to start-up websites with amazing CSS3 animated icons, price tables and parallax effect background.
GK User
Sat Jul 06, 2013 3:18 pm
Just a quick one, looks like I cant add another shortcode within the columns;

e.g;

[contact-form-7 id="11" title="Our Mission Form"]

Added within;

[columns][column]Our Mission is to help you turn your website into a centre of growth for your organisation.
<h4>Interested? Then Let’s Get You Started Today</h4>
[contact-form-7 id="11" title="Our Mission Form"]
[/column][column]<img alt="" src="http://placehold.it/600x350" />[/column][/columns]

Just displays the
[contact-form-7 id="11" title="Our Mission Form"]
Literally rather than the hook for the CF7 form
User avatar
Fresh Boarder

GK User
Sat Jul 06, 2013 3:31 pm
Fixed it using a plugin, that said I do not think your shortcodes are correctly coded to allow nesting of them or other shortcodes.

My Fix;
Install; http://wordpress.org/plugins/insert-php/

Use like this;
[columns][column]Our Mission is to help you turn your website into a centre of growth for your organisation.
<h4>Interested? Then Let’s Get You Started Today</h4>
[insert_php] echo do_shortcode( '[contact-form-7 id="11" title="Our Mission Form"]' ); [/insert_php]
[/column][column]<img alt="" src="http://placehold.it/600x350" />[/column][/columns]

do_shortcode is the key here, I am unsure but I assume you are not using these, hope this helps, not fully tested but should be a hack for now.
User avatar
Fresh Boarder

GK User
Mon Jul 08, 2013 9:06 am
Hi,

Our themes don't support nested shortcodes, because of optimization, of course you can use e.g this plugin.

regards..
User avatar
Moderator


cron