Author box on Author archive page for Sparkling WordPress theme

Hi Aigairs,

love your theme’s! Use them for a lot of my websites. For one of these i have multiple authors and when i click on an authors name in a post then i go (offcourse) to the author’s

Is it possible to show the authors bio and avatar in the top of the authors page? As a sort of introduction of the author?


You can add author bie just like one you can see below post content by adding this code snipped inside archive.php right after closing h1 tag </h1>. The code you should use is like this:

	if (is_author() ) : ?>
		<div class="post-inner-content secondary-content-box">
      <!-- author bio -->
      <div class="author-bio content-box-inner">

        <!-- avatar -->
        <div class="avatar">
            <?php echo get_avatar(get_the_author_meta('ID') , '60'); ?>
        <!-- end avatar -->

        <!-- user bio -->
        <div class="author-bio-content">

          <h4 class="author-name"><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php echo get_the_author_meta('display_name'); ?></a></h4>
          <p class="author-description">
              <?php echo get_the_author_meta('description'); ?>

        </div><!-- end .author-bio-content -->

      </div><!-- end .author-bio  -->

<?php endif; ?>

Let me know if you need any further assistance

Worked perfect, thanks Aigars!