How To: Add target="_blank" To WordPress Author Profile Bio Links

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on tumblr
Share on reddit

There has been a bug in the WordPress core that strips target="_blank" from any "a href" links added to the user's "Biographical Info" field.

The links work fine, but they just won't open in a new tab when clicked since target="_blank" is automatically stripped from the link. This has been an issue for years now.

To fix it, simply add the code given below to your WordPress theme's functions.php file:

I hope this fixes the problem. If you still have any doubts, then feel free to drop a comment below.

Related Posts

Ritesh Saini
Ritesh Saini
I’m a Professional Blogger & Internet Marketer living in India. Started my blogging and online marketing journey in 2013 when I was just 18 years old. You can see my work here on this blog and at

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.