Get userdata from url

WordPress already has a url structure for Author information. If you have pretty Permalinks enabled, the URL should read like http://www.website.com/author/username .

You can make a new template file named author.php in your theme to manipulate what is shown on this page (add meta information and whatnot).

You can get the author id in the author.php by using get_queried_object_id() . Bonus: all the posts by this author are in the loop.

To get the URL for the authors page, you can use get_author_posts_url( $author_id) .