Remove auto paragraphs in shortcodes in WordPress
// move wpautop filter to AFTER shortcode is processed - this is so shortcodes do not get processed
remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'wpautop' , 99);
add_filter( 'the_content', 'shortcode_unautop',100 );