0

I created an author template with the author.php file for wordpress and I recently added a custom role called 'guide_author', although when I try to view their author's page it just shows the details of the first author with a normal wordpress role rather than the custom author's role information.

For example a 'guide_author' with the name of Mike, when I click on his profile page it shows his name as Brent instead since Brent is the first user of the normal wordpress roles.

The code I"m using to get the Author's name in my author.php template file is

<?php echo get_the_author() ; ?>
Greenhoe
  • 1,051
  • 4
  • 18
  • 41

0 Answers0