I am attempting to design my first WordPress theme. I am an experienced website designer with a good knowledge of HTML and CSS. I am not a developer and have only a rudimentary knowledge of PHP.
I want to set up a template page that will display the author's name on the post as a byline. In order to do this, of course, I need the author's first and last name to be displayed, not the author's nickname or login name.
Here's the code at the beginning of the template page I've been working on
Everything I've tried with this will display only the nickname, not the author's full name.
Any suggestions on what I'm doing wrong?