How to Manually Create a Custom Author Page in Your WP Theme [2022]

Due to the small number of WordPress blogs that have multiple authors, very few WordPress themes seem to come with a custom author page.

This means whenever someone goes to the author page, WordPress will by default use your archives.php file, or if that isn’t available, then use your index.php file. This generally doesn’t make for a very nice author page because it just displays that authors posts in the same format as your archives.

How to Manually Create a Custom Author Page


In order to create an author page, you will want to make a copy of your archives.php file and name it author.php, then upload it to your site via FTP.

Another way to go about it is to go to your theme folder using ftp, create an author.php file and then copy the contents of archive.php file and paste them inside your new author.php template.

You then need to edit the author.php page you just created. It will vary a little bit depending on your theme, but we basically have to redo the post loop for this page.

Note: Some themes will already have an author.php file, so you can just edit that instead of creating another new file.

A typical archive page will call the header, then finish with calling the sidebar and footer. We will be changing the code in between. Here is the code that a standard theme would use between the header and sidebar/footer calls:


About:

Website:

Profile:

Posts by :

 



This will display the author’s nickname, their website, and whatever is in the description field, as well as a bulleted list of all their posts. Once set up, you can control everything from within your Users panel in your WordPress dashboard. To see a list of other arguments you can get, I recommend checking out the official WordPress Author template.

As an added bonus, if you want your authors name link to point towards the authors page, you can do so with the following code:

I hope this article helped you learn how to manually create a custom author page without using a plugin.

If you liked this article, then please subscribe to our weekly newsletter to get notified of new WordPress guides, tips, deals and much more.

1/5 - (3 votes)