View Single Post
Old 08-09-2009, 06:18 AM  
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
Mine is simple enough, it grabs the author name, looks for an include so you can have a different author bio layout, pictures, fb/twitter links whatever on that. And the rest just spits out the posts by that author.

Code:
get_header(); if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else : $curauth = get_userdata(intval($author));
endif; ?>
	<div class="post"><div id="post-archives">
	<?php include('./'.$curauth->nickname.'.php');?>
	<br />
	<h2>Posts by <?php echo $curauth->nickname; ?>:</h2>
     <ul>
<?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>, <?php the_time('d M Y'); ?></li>
<?php endwhile; else: ?>
     <p><?php _e('No posts by this author.'); ?></p>
<?php endif; ?>
     </ul>
<?php get_footer();?>
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote