I want to try and remove automatic <p>
tag and <br>
tag addition for my custom post type.
It looks like
remove_filter( 'the_content', 'wpautop' );
will do this, but how would I make the change only for my chosen post type I've tried writing a function for this, but it doesn't seem to work:
function remove_tags() {
global $post_type;
if ( 'client' == $post_type ) {
remove_filter( 'the_content', 'wpautop' );
}
}