Prevent Auto Parapgraphs for WP Category_description

Typically if you want to pull a category description you’d use WordPress’ handy category_description(); function. The problem some people have is with paragraph tags being inserted automatically by WordPress.

Solution: Filter out the Paragraph Tags

Simply insert the following filter into your WordPress theme’s functions.php file and enjoy your category descriptions paragraph free!

Thanks to the category_description return paragraph tag thread on WordPress Forums for this quick and easy filter.

Devin Walker is a San Diego-based WordPress Developer and enthusiast. He is the author of several popular and highly-rated WordPress themes and plugins. In his free time he enjoys playing Golf and traveling.

Follow Devin: