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.
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. Now go into your theme and edit the author.php page you just created. From here, it will vary a little bit depending on your theme, but we basically have to redo the post loop for this page. 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:
<div id="content" class="narrowcolumn">
<!-- This sets the $curauth variable -->
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
<h3>About: <?php echo $curauth->display_name; ?></h3>
<p><strong>Website:</strong> <a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></p>
<p><strong>Profile:</strong> <?php echo $curauth->user_description; ?></p>
<h3>Posts by <?php echo $curauth->display_name; ?>:</h3>
<ul>
<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>
</li>
<?php endwhile; else: ?>
<p><?php _e('No posts by this author.'); ?></p>
<?php endif; ?>
<!-- End Loop -->
</ul>
</div>
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 of 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:
<?php the_author_posts_link(); ?>














There Are 36 Responses So Far »
Pingback: links for 2008-01-04 : ?????
Pingback: Buffer Dump 18JAN08 « Feet up, eyes closed, head back
Pingback: » links for 2008-03-16 copyblokking.com
Pingback: links for 2008-03-18 | Webmercial.dk
Pingback: 63 Essential Wordpress Hacks, Tutorials, Help Files and Cheats | Speckyboy - Wordpress and Design
Pingback: 155 Wordpress Resources, Tutorials, Plugins, Themes, AJAX, Podcasting…WP Monster List | Speckyboy - Wordpress and Design
Pingback: IndoProTech.com
Pingback: Compilation of WordPress Hacks
Pingback: Most Desired WordPress Hacks: 11 Common Requests and Fixes
Pingback: 100+ Killer Wordpress Resources | Steffan Antonas' Blog
Pingback: Most Desired WordPress Hacks: 11 Common Requests and Fixes | POLPDESIGN
Pingback: WordPress Developer’s Toolbox | Developer's Toolbox | Smashing Magazine
Pingback: WP?????-2.13: ???WordPress???? | ????
Pingback: WordPress Developer’s Toolbox | rafdesign
Pingback: In the Woods - 20 Resources to Get You Started with WordPress from Scratch
Pingback: 135+ Ultimate Round-Up of Wordpress Tutorials | About Us | instantShift
Pingback: WP Multi-Autor: Trucos y Practicas | Eliseos.Net
Pingback: 250 Wordpress Tutorials
Pingback: 135+ Ultimate Wordpress Tutorials
Pingback: Blog – Velagapati - 300+ Resources to Help You Become a WordPress Expert
Pingback: Change the WordPress Author Archive Permalink
Pingback: WordPress Tutorials and Tips: Part One
Pingback: Tutorial: Autoren-Seite anlegen | Wordpress Lesezeichen
Pingback: WordPress 300+ Collection of Amazing Resources | Amazing and Inspiring Design
Pingback: 300+ Resources to Help You Become a WordPress Expert | LeVoltz - iPhone Games, Engineering Projects, Wordpress Themes
Pingback: Around the WordPress Community: Dynamic Copyrights, Moving WordPress, Microformats, and Twitter to Blog | WordCast - BBlogging news, Blogging podcasts, WordPress podcasts, WordPress plugins, WordPress themes, WordPress news
Pingback: WordPress Expert Resources, Wordpress Plugins, Wordpress Tutorials
Pingback: 300 resources to help you master WordPress « Er.Krushna Chandra Muni :: Professional Web Developer | Website Design Orissa | Website Design Bhubaneswar | Website Design India | Website Design New Zealand | Website Design Auckland
Pingback: The Ultimate Roundup of WordPress Tutorials, Themes and Guides | Private Gardens
Pingback: 300+ Resources to Help You Become a WordPress Expert « Flash Criminals
Pingback: 50 Ultimate Tutorials To Make You A Power Wordpress User | stylishwebdesigner
Pingback: 250+ Resources to Help You Become a WordPress Expert | How 2 WordPress
Pingback: 136 Massive Wordpress Tutorial Collection | WebCoreStudio
Pingback: CyberInnovation.com Team Learning Site | Home
Pingback: WordPress Tutorials and Tips: Part One | Radical Development
Pingback: 135 link cung c?p th? thu?t wordpress hot nh?t | T?p Chí SEO
Pingback: 135 webs/blog for wordpress tips |
Pingback: 300+ Resources to Help You Become a WordPress Expert | Kill your Time
Pingback: Managing Multiple Authors: Customizing the WordPress Author Page « Lorelle on WordPress
Pingback: The Ultimate Roundup of WordPress Tutorials, Themes and Guides
Pingback: 300+ Resources to Help You Become a WordPress Expert | Mr.N design