Created
June 26, 2014 16:07
-
-
Save PurpleHippoDesign/282d263e5dec84bfdc3b to your computer and use it in GitHub Desktop.
Remove post info and post info on custom post type
This file contains hidden or 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 // Get rid of this tag | |
// Remove Post Info, Post Meta from CPT | |
function pbh_remove_post_info() { | |
if( 'testimonial' == get_post_type() ) { | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
} | |
} | |
add_action ( 'get_header', 'pbh_remove_post_info' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment