Skip to content

Instantly share code, notes, and snippets.

@pdewouters
Created January 25, 2012 21:12
Show Gist options
  • Save pdewouters/1678751 to your computer and use it in GitHub Desktop.
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
//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