Skip to content

Instantly share code, notes, and snippets.

Created March 31, 2016 22:29
What would you like to do?
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