How to Add Author Box to End of Posts In Genesis WordPress Theme

An author box is a small text/image containing box which displays crucial information about the blog.It contains descriptive information such as the author name,small image of the author,short,descriptive bio,social media profiles etc.It usually located at the end of every post created by the author.


Creating a descriptive author box which add a professional touch to your weblog with multiple author  is as simple  as activating the ADMIN author box preloaded with  the genesis theme .This piece of code presented here adds the author box/bio to every blog post  for a multi author blog running on genesis  wordpress theme

/** Add author box to end of posts **/
function abr_author_box () {
$html = ‘<div>’;
$html .=  get_avatar(get_the_author_meta(‘user_email’), 75);
$html .= ‘<strong>About <a href=”‘.get_author_posts_url(get_the_author_meta( ‘ID’ )).'”>’.get_the_author_meta(‘user_firstname’).’ ‘.get_the_author_meta(‘user_lastname’).'</a></strong><br />’;
$html .= wpautop(get_the_author_meta(‘description’));
$html .= ‘</div>’;
echo $html;
add_action ( ‘genesis_before_comments’, ‘abr_author_box’, 10, 1);

Simply add the above code to your function.php file,update the file and reload your page  to see the effected changes.For a blog with just a single author,you can add the author box to your blog witout touching any line of code.

Navigate to your WordPress Dashboard -> Users -> Your Profile -> Genesis User Settings. Check on the box “Enable Author Box on this User’s Posts”,enter your detail and then save.

If you have any questions, then please feel free to ask in the comments below. Also don’t forget to share this article on Twitter, Google+ and on Facebook. We truly appreciate your comments

Spread the love
Previous Article
Next Article

3 Replies to “How to Add Author Box to End of Posts In Genesis WordPress Theme”

Leave a Reply

Your email address will not be published. Required fields are marked *

Custom Search

Gadgetsng Archive

Enter your email address:

Delivered by FeedBurner