-
-
Save cre8tivediva/c0b844462f829838cf6a0b140e0f0374 to your computer and use it in GitHub Desktop.
Add Author Box to About Page using 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
add_action( 'genesis_before_entry', 'genesis_do_author_box_on_page' ); | |
/** | |
* Add author box to your individual About Page. | |
* | |
*/ | |
function genesis_do_author_box_on_page(){ | |
if ( ! is_page( 'about' ) ) | |
return; | |
if ( get_the_author_meta( 'genesis_author_box_single', get_the_author_meta( 'ID' ) ) ) | |
genesis_author_box( 'single' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment