follow mejoin mesubscribe

Conditionally Remove the Genesis Author Box

The Author Box is easily removed from the single post page within a particular category within the Genesis Theme Framework. Use the following php to remove the Author Box from the single post page within your chosen category. Just make sure to replace the category ID, name, or slug. Read more in the WordPress Codex.

add_action( 'template_redirect', 'dream_conditional_authorbox' );
/**
 * Remove authorbox from category 20
 *
 * @author Jen Baumann
 * @link http://dreamwhisperdesigns.com/?p=424
 */
function dream_conditional_authorbox(){
	if( in_category('20') ){
		remove_action( 'genesis_after_post', 'genesis_do_author_box_single' );
	}
}

Place the code in the functions.php file, anywhere after this:

require_once(TEMPLATEPATH.'/lib/init.php');

And before the following closing code (if it exists):

?>
About Jennifer Baumann

I am an avid horseback rider, animal lover, and freelance designer. I love working with WordPress and Genesis and work for Copyblogger Media as a Technical Support Advocate.

Dream Whisper Designs is Powered by Genesis

StudioPress Premium WordPress Themes

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.