I'd like to enable the use of shortcodes in the text areas. For example, when I use OptionTree with a genesis child theme, there are shortcodes available for use in the footer text, so if I make the footer text editable with an option, I'd like to take advantage of the shortcodes. at the moment, it just renders the shortcode without executing it.
http://wordpress.org/extend/plugins/option-tree/
In you theme use the following code to render the shortcode:
echo apply_filters('the_content', $textarea);
Where $textarea is the value of your saved textarea from a get_option_tree() function call. Hope that helps. I'll look into a more permanent solution during the next development cycle.
Jesper Johansen (Jayjdk)
Member
Posted 2 years ago #
or echo do_shortcode( $textarea );