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

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.

Best Managed WordPress HostingWPX Hosting
Best Managed Cloud HostingCloudways
Best Shared HostingSiteGround
Best Site & Page BuilderElementor
Beautiful WordPress ThemesElegant Themes
Lightest & Fastest WordPress ThemeGeneratePress
Best Lead Generation ToolOptinMonster
Best CDNStackPath
Best Domain RegistrarNamecheap

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 criticecho.com

Leave a Comment

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

ShortPixel Logo50% Extra Credits
ShortPixel Coupon
Use our exclusive ShortPixel deal and get 50% extra credits on your purchase of one-time credits.


Send this to a friend