Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove thumbnail from single posts
function remove_post_thumbnail($metadata, $object_id, $meta_key, $single){
if( isset($meta_key) && '_thumbnail_id' === $meta_key && is_single() )
return false;
return $metadata;
add_filter('get_post_metadata', 'remove_post_thumbnail', true, 4);

This comment has been minimized.

Copy link

mikezielonka commented Apr 4, 2014


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.