display editor content but trips only p tags from string in wordpress code example
Example: wordpress remove p from content
// Prevent WP from adding <p> tags on all post types
function disable_wp_auto_p( $content ) {
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
return $content;
}
add_filter( 'the_content', 'disable_wp_auto_p', 0 );