WordPress removes paragraph and line break tags from the Biographical Info field of a user profile. It keeps a short list of safe tags, such as a, strong, em, code and blockquote. The snippet below adds p and br to that list and nothing else.
Allow Paragraphs and Line Breaks
- Go to PluginsAdd Plugin, then install and activate Code Snippets.
- Go to SnippetsAdd New and name the snippet Author Bio Tags.
- Paste the code below.
- Set the scope to Only run in administration area.
- Click Save and Activate.

add_filter( 'wp_kses_allowed_html', 'puro_author_bio_tags', 10, 2 );
function puro_author_bio_tags( $tags, $context ) {
if ( 'pre_user_description' === $context ) {
$tags['p'] = array();
$tags['br'] = array();
}
return $tags;
}The same code works in the functions.php file of a child theme.
WordPress still filters every other tag. Do not remove the
wp_filter_kses filter from pre_user_description: that lets any user with a profile save HTML that WordPress would otherwise block.Add the Tags to Your Bio
- Go to UsersProfile.
- Enter the tags in Biographical Info, for example:

<p>First paragraph.</p> <p>Second paragraph.<br>A new line.</p>
Click Update Profile. Tags saved before you added the snippet were removed, so enter them again.
Show the Bio on Posts
In Polestar, Ultra and the Puro theme, turn on the author box in the theme’s Blog settings. Polestar and Ultra show the paragraphs and line breaks. The Puro theme 1.3.3 removes them in its author box and keeps links and bold text.
In a block theme, add the Author Biography block to a template:
- Go to AppearanceEditorTemplates and open Single Posts.
- Click the block inserter and add Author Biography.
- Click Save.

Related
Was this helpful?