Skip to content

Instantly share code, notes, and snippets.

@jpmarchand
Last active June 2, 2016 17:35
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 jpmarchand/855e6a79710ef7672f2b to your computer and use it in GitHub Desktop.
Save jpmarchand/855e6a79710ef7672f2b to your computer and use it in GitHub Desktop.
<?php
//* Enable Genesis author box on single entries of 'post' type only
//* https://sridharkatakam.com/enable-author-box-single-entries-post-type-genesis/
add_filter( 'get_the_author_genesis_author_box_single', 'sk_author_box_single' );
function sk_author_box_single() {
if ( is_singular( 'post' ) ) {
return true;
}
}
<?php
//* Enable Genesis author box on single posts
add_filter('get_the_author_genesis_author_box_single', '__return_true');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment