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


still no solution


2 Answers 2


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


get_option_tree( 'textboxname');

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.


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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