How to add author box on pages?

I just check the SP forum and see that one person requested it. I added few lines of code in functions.php file and got it. Here is the code:

add_action( 'genesis_after_entry', 'genesis_do_author_box_on_page', 8 );
function genesis_do_author_box_on_page(){
  if ( ! is_singular('page') )
		return;

	if ( get_the_author_meta( 'genesis_author_box_single', get_the_author_meta( 'ID' ) ) )
		genesis_author_box( 'single' );
}
This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.