June 17, 2013 in WordPress Designer Snippets

WordPress Designer Snippet: Author Profile


A great way of creating a connection with your readers is to tell them a little about you in a short author bio at the end of your blog post. This is particularly useful if you have multiple blog authors or want to allow guest posting.

This WordPress designer snippet pulls-in the users bio information and their avatar from their WordPress user account:

Add this snippet to your single.php template:


<div id="author-meta">
<?php
// If user has filled out description, show bio
if ( get_the_author_meta( 'description' ) ) : ?>
<?php echo get_avatar( get_the_author_meta( 'user_email' ) ) ; ?>
<h2><?php printf( __( 'About %s'), get_the_author() ); ?></h2>
<?php the_author_meta( 'description' ); ?>
<?php endif; ?>
</div>


About Anthony

Anthony Brewitt is Design Bit, has been for years - he's an experienced WordPress Designer, and Muggle-born Marketing Philosopher. Let’s talk about your website; your marketing, blog design, and that cool new mobile web thingy. Contact Anthony

Leave a Reply