2

I am using option tree. In textarea, i place shortcode

[layerslider id="1"]

its not working, i also found same post replied by plugin author allow shortcodes in textarea in option tree

applied the

do_shortcode('[layerslider]');

still no solution

1

Got the solution.

you can use shortcode e.g. [layerslider id="1"] in textarea/textbox and call it by the name to the textarea/textbox use in option tree function files

e.g.

get_option_tree( 'textboxname');
| improve this answer | |
1

It will do.

do_shortcode(get_option_tree( 'textboxname' ));

The code will get the value whatever it is form optiontree textbox and execute the shortcode manager on it. If that string contains any shortcode it will be repalced by the output.

Thanks

| improve this answer | |
  • 1
    Please do not just dump code but explain how and why this solves the issue at hand. – kraftner Oct 3 '15 at 9:43
  • @kraftner bro, its a simple code – Shakeeb Ahmed Oct 5 '15 at 6:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.