Using the_author_meta() to fill the meta name=”author” tag

When it comes to garnish the meta tag “author” located between the <head> tags of your website — like <meta name="author" content="Bruno Bichet"> — you can use the_author_meta(). At first, this function seems to be used inside The Loop which doesn’t help very much in this case, but it can be used outside The Loop when the ID of the author is passed as parameter.

This way, I can display the name and forename that the admin filled in wp-admin/profile.php. All that stuff is achieved like this :

<meta name="author" content="<?php the_author_meta('display_name', 1); ?>">