Skip to content

Instantly share code, notes, and snippets.

@srikat
Created March 31, 2016 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikat/07117dfb7208b941e4d8e6688a9091f6 to your computer and use it in GitHub Desktop.
Save srikat/07117dfb7208b941e4d8e6688a9091f6 to your computer and use it in GitHub Desktop.
How to remove post info in Genesis for all post types other than 'post'.
// Remove Post Info from entries of all post types excerpt 'post'
add_action( 'init', 'sk_conditional_post_info', 11 );
function sk_conditional_post_info() {
$public_post_types = get_post_types( array( 'public' => true, '_builtin' => false ) );
foreach ( $public_post_types as $post_type ) {
remove_post_type_support( $post_type, 'genesis-entry-meta-before-content' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment