Created
January 25, 2012 21:12
-
-
Save pdewouters/1678751 to your computer and use it in GitHub Desktop.
remove post info and post meta from specific post type single template in genesis
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
//courtesy http://www.binaryturf.com/genesis-tip-remove-post-info-specific-custom-post-type/ | |
add_filter('genesis_post_info', 'aha_post_info'); | |
add_filter('genesis_post_meta', 'aha_post_meta'); | |
function aha_post_info($post_info) | |
{ | |
global $post; | |
if(get_post_type($post->ID) == 'ai1ec_event' ) | |
{ | |
return false; | |
} | |
else | |
{ | |
return $post_info; | |
} | |
} | |
function aha_post_meta($post_meta) | |
{ | |
global $post; | |
if(get_post_type($post->ID) == 'ai1ec_event' ) | |
{ | |
return false; | |
} | |
else | |
{ | |
return $post_meta; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment