Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Col Shortcode #13

Open
gaisho opened this issue Dec 21, 2013 · 1 comment
Open

Nested Col Shortcode #13

gaisho opened this issue Dec 21, 2013 · 1 comment

Comments

@gaisho
Copy link

gaisho commented Dec 21, 2013

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
Copy link
Author

gaisho commented Dec 21, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant