Theme URLs problem
If you are on an “Author” page, and since you mentioned author.php it seems that you are, get_queried_object() will give you the author data, which it seems is what you want. Try: var_dump(get_queried_object()); I believe that is all the information you need.