Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active Jun 1, 2016
Embed
What would you like to do?
How to enable Author Box on single entries of 'post' type only. https://sridharkatakam.com/enable-author-box-single-entries-post-type-genesis/
//* Display author box on single posts
add_filter( 'get_the_author_genesis_author_box_single', '__return_true' );
// Enable Author Box on single entries of 'post' type only
add_filter( 'get_the_author_genesis_author_box_single', 'sk_author_box_single' );
function sk_author_box_single() {
if ( is_singular( 'post' ) ) {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment