MWDelaney / bootstrap-3-shortcodes

WordPress shortcodes for easier use of Bootstrap elements in your content.
https://wordpress.org/plugins/bootstrap-3-shortcodes/
MIT License
377 stars 118 forks source link

Nested shortcodes #63

Closed frietboer closed 10 years ago

frietboer commented 10 years ago

It would be great if the [row] and [column] shortcodes could be nested. So to bypass the Wordpress way of handling shortcodes, something should be added to the name. Like [subrow] or [row1] [row2]. Or any other clever idea?

MWDelaney commented 10 years ago

I think this functionality is beyond the scope of this plugin. We need to balance functionality with usability, and the shear number of shortcodes this would require would be difficult to maintain and use.

frietboer commented 10 years ago

ok, fair enough!

Great plugin by the way.

aibrean commented 10 years ago

This would actually be doable if it was allowed like [row] [row_a] [/row_a] [/row]

See http://www.pagelines.com/shop/plugins/grid-shortcodes/.

I think this is the biggest shortfall of the plugin.

MWDelaney commented 10 years ago

@aibrean I agree that it's possible to add this functionality, but we feel that it would make the plugin too complicated for the end user. One of the goals of this plugin is to put great layout tools in the hands of content editors who might not know much about web development and design. We feel that adding additional, complicated shortcodes specifically for nesting would confuse those end users. Not only that, but it makes the WordPress TinyMCE editor much more difficult to read.

If complicated grids-within-grids are required we suggest you use WordPress page templates or post formats.

However, since we're open source, you're welcome to fork this plugin and add the functionality yourself!