Last active
January 3, 2016 14:29
-
-
Save 3200creative/8476419 to your computer and use it in GitHub Desktop.
show full content for a certain category | Genesis 2.0
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
/* 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