Shortcode are not working in Option tree textarea

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

Read More

applied the

do_shortcode('[layerslider]');

still no solution

Related posts

2 comments

  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');
    
  2. 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

Comments are closed.