Title: author.php
Last modified: August 20, 2016

---

# author.php

 *  Resolved [zwrodgers](https://wordpress.org/support/users/zwrodgers/)
 * (@zwrodgers)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/authorphp-4/)
 * I am trying to incorporate the plugin into my author.php file (site has multiple
   authors), which I’m able to do, semi-successfully, [using your example](http://wordpress.org/support/topic/plugin-wp-biographia-adding-wp-biographia-plugin-to-author-template?replies=3).
   There are two items that aren’t displaying properly:
 * 1) author post archives not showing at all
 * 2) sidebar is being displayed at the bottom of the page (after all other content)
 * I’m not a very good coder (teaching myself as I go), so my code could be terribly
   messy:
 *     ```
       <?php
       get_header(); ?>
   
       <div id="container">
       <div id="content" role="main">
   
       <?php
   
       if ( have_posts() )
       the_post();
       ?>
   
       <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'Lucid' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>" ); ?></h1>
   
       <?php
       if (function_exists ('wpb_the_biography_box')) {
       wpb_the_biography_box ();
       }
   
       rewind_posts();
   
       get_template_part( 'loop', 'author' );
       ?>
       </div><!-- #content -->
       </div><!-- #container -->
   
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 * I am able to get the author post archives displaying correctly like this (BUT
   the sidebar is still messed up):
 *     ```
       <?php get_header();
       ?>
   
       <div id="content-area" class="clearfix">
         <div id="left-area">
            <?php get_template_part('includes/breadcrumbs', 'index');
            ?>
   
            <!-- This sets the $curauth variable -->
   
            <div><?php
       $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
              ?>
              <h1> <p style = "font-size: 40px"><?php echo $curauth->nickname;
                 ?></p></h1>
              <?php the_author_image();
              ?>
              <br>
              <dl>
                 <dd><h4><?php echo $curauth->user_description;
                   ?></h4></dd>
              </dl></div>
   
            <h3>Posts by <?php echo $curauth->nickname;
              ?>:</h3>
            <br>
            <ul>
   
              <?php if (have_posts()) : while (have_posts()) : the_post();
              ?>
              <?php get_template_part('includes/entry', 'index');
              ?>
              <?php
       endwhile;
       if (function_exists('wp_pagenavi')) {
         wp_pagenavi();
       }
       else {
         get_template_part('includes/navigation','entry');
       }
       else:
       get_template_part('includes/no-results','entry');
       endif;
              ?>
   
              <!-- end #left-area -->
   
              <?php if ( ! $fullwidth ) get_sidebar();
              ?>
   
              <!-- end #content-area -->
   
              <?php get_footer();
              ?>
       ```
   
 * I am using the Lucid theme from Elegant Themes. Sorry for the long post and thank
   you SO MUCH for any assistance you might be able to provide!
 * [http://wordpress.org/extend/plugins/wp-biographia/](http://wordpress.org/extend/plugins/wp-biographia/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [zwrodgers](https://wordpress.org/support/users/zwrodgers/)
 * (@zwrodgers)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/authorphp-4/#post-3629889)
 * GOT IT! I used
    `<?php echo do_shortcode ('[wp_biographia]'); ?>`
 * and then for the sidebar, I played around with the `<div id="left-area">` until
   it behaved as I wanted. Thanks for the plugin!!
 *  Plugin Author [vicchi](https://wordpress.org/support/users/vicchi/)
 * (@vicchi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/authorphp-4/#post-3630008)
 * Glad you got it sorted. If you’re editing your `author.php` template you might
   want to consider using the `wpb_the_biography_box` template tag rather than a
   call to `do_shortcode` (see [http://www.vicchi.org/codeage/wp-biographia/6-template-tags/](http://www.vicchi.org/codeage/wp-biographia/6-template-tags/)).
   The template tag does the same thing but with less calling overhead and thus 
   it should be slightly quicker to emit the Biography Box.
 * -Gary
 *  Thread Starter [zwrodgers](https://wordpress.org/support/users/zwrodgers/)
 * (@zwrodgers)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/authorphp-4/#post-3630093)
 * I can’t get that to work (using the wpb_the_biography_box template tag rather
   than a call to do_shortcode). It only displays when I use the do_shortcode
 *  Plugin Author [vicchi](https://wordpress.org/support/users/vicchi/)
 * (@vicchi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/authorphp-4/#post-3630098)
 * You’ll need to structure your `author.php` slightly to use template tags; see
   [https://github.com/vicchi/twentyten-vicchi/blob/master/author.php](https://github.com/vicchi/twentyten-vicchi/blob/master/author.php)
   for a working example (which is running on the author template page on my blog).
 * -Gary

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘author.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-biographia_f0f0f0.svg)
 * [WP Biographia](https://wordpress.org/plugins/wp-biographia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-biographia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-biographia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-biographia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-biographia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-biographia/reviews/)

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)

 * 4 replies
 * 2 participants
 * Last reply from: [vicchi](https://wordpress.org/support/users/vicchi/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/authorphp-4/#post-3630098)
 * Status: resolved