I am using an Options Panel to create my themes, and I would like to make the textareas from this OP to support my shortcodes too.
The code for that creates the textarea fields:
case 'textarea':
$cols = '8';
$ta_value = '';
if(isset($value['options'])) {
$ta_options = $value['options'];
if(isset($ta_options['cols'])) {
$cols = $ta_options['cols'];
}
}
$ta_value = stripslashes($data[$value['id']]);
$output .= '<textarea class="of-input" name="'.$value['id'].'" id="'. $value['id'] .'" cols="'. $cols .'" rows="8">'.$ta_value.'</textarea>';
break;
Any idea how can I do that?
Please let me know if I should provide more details. Thanks.
echo do_shortcode($textarea_value);