Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active June 1, 2016 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikat/61986bde77303c038e3b5ddbf7b66aaf to your computer and use it in GitHub Desktop.
Save srikat/61986bde77303c038e3b5ddbf7b66aaf to your computer and use it in GitHub Desktop.
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