Prints the author’s name.

Tries to print first_name and last_name first. If they are not set, defaults to display_name.


  1. $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Ā  $author_id.

When used from inside the main WP loop, we don’t need to provide it.

Join Our Newsletter

To get updates about Theme Redone