oscitasthemes / Easy-Bootstrap-Shortcode

Wordpress Easy Bootstrap Shortcode Plugin is bootstrap 3.0 compatible plugin which add icons to wordpress editor (tinyMCE Shortcode Buttons) and one can add bootstrap style to their website just by clicking on tinyMCE editor icon.
GNU General Public License v2.0
43 stars 17 forks source link

Nested Col Shortcode #13

Open gaisho opened 10 years ago

gaisho commented 10 years ago

I created a shortcode which works perfectly on its own, but when I wrap it around the [col] shortcode as shown below, my shortcode is not added within the col wrapper. Instead is is rendered outside the col-wrapper. not sure why!! :(

[row class="container"] [column lg="12" md="12" sm="12" xs="12" ][my_short_code][/column][/row]

gaisho commented 10 years ago

aaahhh I figured it out. sorry it was my problem;

my shortcode uses load_template() and therefore loaded the template before hand. What I was supposed to do is load the template into the buffer with ob_start() .... ob_get_clean() and then it renders property after that.

Hope this helps someone who's has a few blood stains on the wall and a very saw head.