Skip to content

Instantly share code, notes, and snippets.

@PurpleHippoDesign
Created June 26, 2014 16:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PurpleHippoDesign/282d263e5dec84bfdc3b to your computer and use it in GitHub Desktop.
Save PurpleHippoDesign/282d263e5dec84bfdc3b to your computer and use it in GitHub Desktop.
Remove post info and post info on custom post type
<?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