Last active
June 1, 2016 00:26
-
-
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/
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
//* Display author box on single posts | |
add_filter( 'get_the_author_genesis_author_box_single', '__return_true' ); |
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
// 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