function get_the_author_aim() { global $id,$authordata; return str_replace(' ', '+', $authordata->user_aim); } function the_author_aim() { echo get_the_author_aim(); }