Skip to content

Instantly share code, notes, and snippets.

@3200creative
Last active January 3, 2016 14:29
Show Gist options
  • Save 3200creative/8476419 to your computer and use it in GitHub Desktop.
Save 3200creative/8476419 to your computer and use it in GitHub Desktop.
show full content for a certain category | Genesis 2.0
/* Show full content for particular category */
add_action( 'genesis_before', 'child_conditional_actions' );
function child_conditional_actions() {
if( is_category('174')) {
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
add_action( 'genesis_entry_content', 'the_content' );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action('genesis_entry_footer', 'genesis_do_post_title');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment