Created
April 5, 2016 12:32
-
-
Save ohdesigner/fe9abcfab09fdf0a1366ece0e94be472 to your computer and use it in GitHub Desktop.
WordPress Genesis Add About the Author, Author Biography http://www.ohdesigner.com/add-about-the-author-wordpress-genesis/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_author_bio() { | |
if ( !is_singular( array( 'post', 'page' ) )) return; | |
{ ?> | |
<div class="postauthor"> | |
<?php echo get_avatar( get_the_author_id() , 120 ); ?> | |
<h4>About the Author</h4> | |
<p><?php the_author_description(); ?></p> | |
</div> | |
<?php } | |
} | |
add_action('genesis_entry_footer', 'add_author_bio', 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment