I’m managing a multi-author blog and I want to change the author pages. Basically I want to have the author’s name at the top, author picture on the right and author description on the left. Below this I want to have the author’s archives listed in the same fashion as posts are listed under a category. Can anyone help me with this? Here is the code from the author.php file which I have made so far but am now stuck.
<?php get_header(); ?> <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; ?> <h2><?php echo $curauth->nickname; ?></h2> <dl><dd><?php echo $curauth->user_description; ?></dd> </dl> </dl> <h2>Latest by <?php echo $curauth->first_name; ?>:</h2> <ul> <!-- The Loop --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"> <?php the_title(); ?> </h3></li> <?php the_author_image(); ?> <?php endwhile; else: ?> <p><?php _e('No posts by this author.'); ?></p> <?php endif; ?> <!-- End Loop --> </ul> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
- The topic ‘Creating author page with pics, archive, description’ is closed to new replies.