Posts by ajowell100

1 post
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • United Kingdom
ajowell100 says
All
function clean_shortcodes($content) {   
    $array = array (
        '<p>[' => '[', 
        ']</p>' => ']',
        '<p><span>[' => '[', 
        ']</span></p>' => ']', 
        ']<br />' => ']'
    );

    $content = strtr($content, $array);
    return $content;
}
add_filter('the_content', 'clean_shortcodes');
Works for me.
by
by
by
by
by
by