I've added shortcode to a page via a custom textarea in my Wordpress admin, but the shortcode is seen as text and gets wrapped in quotation marks, so it doesn't work.
This is basically how I sanitize my input:
if( isset( $input['textarea_input'] ) )
$new_input['textarea_input'] = sanitize_text_field( $input['textarea_input'] );
This is how I output it on the page:
<?php echo $options['textarea_input']; ?>
do_shortcode does not change anything
<?php echo do_shortcode($options['textarea_input']); ?>
My guess is that the Wordpress TinyMCE editor recognizes shortcode, and therefor it works. Since mine is added via a hidden text area, it's just seen as plain text. What does the TinyMCE editor what I'm not doing? I wan't