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?
Thanks!
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:
<?php
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'); ?>
</div>
<!-- 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'); ?>
</p>
</div><!-- end .author-bio-content -->
</div><!-- end .author-bio -->
</div>
<?php endif; ?>
Let me know if you need any further assistance
Worked perfect, thanks Aigars!