Created
May 26, 2014 17:09
-
-
Save cdils/b34fb69ee7bc1047f3ef to your computer and use it in GitHub Desktop.
Remove post info and post meta from some custom post type pages.
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
<?php //remove this entire line with opening tag | |
//Remove post info and post meta on custom post types | |
add_action ( 'get_header', 'cd_remove_post_details'); | |
function cd_remove_post_details() { | |
if ( is_singular( array( 'press', 'filmmaker' ) ) ) { | |
remove_action ( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action ( 'genesis_entry_footer', 'genesis_post_meta' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment