Confessions of a Six Figure Professional Blogger

Allowing HTML in Wordpress Profile Descriptions

This is a short, technical post on how to solve a problem with Wordpress. I realize it will only apply to some, but it is the answer to those who need it.

The problem is that the profile field for authors in Wordpress is very limiting, by default. It strips all HTML out of the field, which means you cannot include links, images, even basic formatting. In my opinion, this is really stupid and I don’t know why the Wordpress guys decided to do that. Unfortunately, the way they did it makes use of the filter system in Wordpress. To my knowledge, then, you cannot undo it with a plug-in (I may be wrong). The good news is that it is really easy to stop the filter from working.

To do this, open up /wp-includes/registration.php in a text editor. Then, find the following code:

$description = apply_filters('pre_user_description', $description);

Comment it out by putting two slashes in front of it, making it:

//$description = apply_filters('pre_user_description', $description);

This is a quick and dirty way to allow anything into the author description field in Wordpress.

If you enjoyed this article, you might also like...

  1. How To: Putting the Full Blog Post Into An Aweber Blog Broadcast
  2. Wordpress Theme Switch – Solved?
  3. How I Converted a Non-Blog Site to Wordpress
  4. Wordpress and Curing High Server Load
  5. Using Wordpress to Podcast and Video Blog

Learn The Real Story On Blogging As a Business...

  • Get immediate FREE access to the Six Figure Blogger Blueprint
  • Get exclusive stuff NOT available on this blog.
  • Get the latest updates from the weird Risley man who runs this site.

Enter email:

  • Thank you very much for the tip!
  • That always bugged me. Thanks so much for the solution.
  • fimp
    Have you tested this with Wordpress 2.5? It doesn't seem to work on mine.
  • //http://wordpress.org/support/topic/121789
    remove_filter('pre_user_description', 'wp_filter_kses');


    Best regards
    Kai
  • I always wondered about that, thanks!

    -Terra
    www.BetterForBusiness.com
blog comments powered by Disqus