Prints the author’s name.
Tries to print first_name and last_name first. If they are not set, defaults to display_name.
$author_id. If we are using this function inside our custom loops. We need to pass the author’s ID. Optional, Type: INT or false, Default: false.
In a scenario where we are using this function from inside a custom get_posts loop, we need to provide
When used from inside the main WP loop, we don’t need to provide it.