Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Last active Nov 16, 2017
Embed
What would you like to do?
Remove the `p` Paragraph Tags From Author Description in WordPress
<?php
/*
Remove the `<p></p>` Tags From Author Description in WordPress
Since WordPress 4.9 by default WordPress adds paragraph tags to the author descriptions.
This sometimes breaks your theme styles. Stop this by adding the following to your `functions.php` file.
*/
// Remove p tags from author description.
remove_filter( 'get_the_author_description', 'wpautop' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment