get_author_name showing wrong author

Regardless if author equals to /?author=1 or /?author=2 or /?author=3, it always shows the author as Ben, which is /?author=2.

Looking at the header file, it uses get_the_author() so I would assume that it should work!

I’ve not changed the theme except for adding/amending the sliding carousel onto the other pages (including the author pages) so I’m not sure if this query is making the author name break.

Can anyone advise? I can post the website/code if you wish.

Thank you

Are you sure that you are using get_the_authorwithin the loop? This function doesn’t support any parameters and you can’t specify which user you are referring to, so it will not work outside loop.

For more flexible use you can look into get_the_author_meta function.