function wpex_fix_shortcodes($content){ $array = array ( '

[' => '[', ']

' => ']', ']
' => ']' ); $content = strtr($content, $array); return $content; } add_filter('the_content', 'wpex_fix_shortcodes');