Created
March 31, 2016 22:29
-
-
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'.
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
// 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