Hi, Antti,
The next version of Bootstrap Shortcodes for WordPress should make this kind of nesting a little more reliable.
If you’re interested, you can grab the latest development version of the plugin, which should include the functionality you’re looking for, from GitHub here:
https://github.com/filipstefansson/bootstrap-3-shortcodes
B C
(@thedigitalengine)
Echo, thanks for the plugin, much appreciated.
Does the support for listing mean I might be able to nest containers (e.g. to have a full width grey background, then a centred 12 col container), like:
[container fluid="true" xclass="background-grey"]
[container]
[row]
[column md="12"]
<h2>Most popular</h2>
[/column]
[/row]
[/container]
[/container]
At the moment I have to remove the one of the containers and do this:
<div class="container-fluid background-grey">
[container]
[row]
[column md="12"]
<h2>Most popular</h2>
[/column]
[/row]
[/container]
</div>
No, unfortunately you cannot nest shortcodes of the same name. This is a limitation of WordPress itself, not of this plugin specifically
http://codex.ww.wp.xz.cn/Shortcode_API#Nested_Shortcodes
Will Bootstrap Shortcodes support nested shortcodes?
[row]
[column md="6"]
Lorem ipsum dolor sit amet
[/column]
[column md="6"]
[row-a]
[column-b md="6"]
Lorem ipsum dolor sit amet
[/column-b]
[column-b md="6"]
Lorem ipsum dolor sit amet
[/column-b]
[/row-a]
[/column]
[/row]
Please see the previous answer. This plugin does not support nested shortcodes of the same name because WordPress does not support it. We cannot add this support until WordPress adds it themselves.