Selective wpautop, aka, How to add a class to the first paragraph of one post type

One of the first things I do when I’m setting up a theme is to remove WordPress’s default wpautop settings from most areas within a theme’s functions.php. For instance: remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ ); But once in a while, it’s actually useful to have wpautop do its magic and you can selectively … Continue reading

Item added to cart.
0 items - $0