24 August 2015

Strip out empty paragraphs from WordPress content

Here’s a handy little function for stripping out empty paragraphs in WordPress content.

Thanks to Steph, Helpful Technology MD, for this one.

Simply add this to functions.php and enjoy the restored beauty.