Created
March 31, 2016 19:33
-
-
Save salcode/c08b5d1f5d54224adb34df1496f79e22 to your computer and use it in GitHub Desktop.
WordPress mu-plugin for Genesis to only display post info when the post type is "post". This applies to the single template, archive, and search results page.
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 | |
/** | |
* Genesis: Only display post info when post type is "post" | |
*/ | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
add_action( 'genesis_entry_header', 'fe_genesis_post_info', 12 ); | |
function fe_genesis_post_info() { | |
if ( 'post' === get_post_type() ) { | |
genesis_post_info(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment