• This is in regards to using <?php the_author_description() ?> in the author.php file I created. I’ve successfully pulled the description data through, but it doesn’t appreciate any sort of relative formatting – including html/bbcode/tickmarks, nothing seems to work.

    Has anyone else encountered this and/or how would you suggest going about formatting certain areas of the description?

Viewing 16 replies (of 16 total)
  • I have found a work-around. However, I think it may leave the author description box wide open in terms of validating user input–use with care.

    line 71 of wp-includes/registration-functions.php:

    $description = apply_filters(‘pre_user_description’, $description);

    Just comment this line out, like so:

    //$description = apply_filters(‘pre_user_description’, $description);

    and it will skip the filters on the description field when you update it from the User’s page (i.e. add in html and it won’t strip it out).

    A better solution would probably be to make a copy of the apply_filters function that leaves in the HTML codes you want and apply it specifically to the $description.

Viewing 16 replies (of 16 total)
  • The topic ‘Lose formatting calling author description.’ is closed to new replies.